From: Thomas Schwinge Date: Sun, 17 Sep 2017 12:11:40 +0000 (+0200) Subject: Fix gccbrig documentation build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ac3ed134b4ad4a0e82ed1acc062e694128f103b;p=gcc.git Fix gccbrig documentation build gcc/brig/ * Make-lang.in (GO_TEXI_FILES): Rename to... (BRIG_TEXI_FILES): ... this. (doc/gccbrig.info, doc/gccbrig.dvi, doc/gccbrig.pdf, brig.info) (brig.srcinfo, brig.man, brig.srcman, brig.install-man) ($(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext)): Uncomment/enable targets. (gccbrig.pod): New target. * gccbrig.texi: New file. From-SVN: r252893 --- diff --git a/gcc/brig/ChangeLog b/gcc/brig/ChangeLog index 08045329eeb..ebf31c43a82 100644 --- a/gcc/brig/ChangeLog +++ b/gcc/brig/ChangeLog @@ -1,3 +1,14 @@ +2017-09-17 Thomas Schwinge + + * Make-lang.in (GO_TEXI_FILES): Rename to... + (BRIG_TEXI_FILES): ... this. + (doc/gccbrig.info, doc/gccbrig.dvi, doc/gccbrig.pdf, brig.info) + (brig.srcinfo, brig.man, brig.srcman, brig.install-man) + ($(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext)): + Uncomment/enable targets. + (gccbrig.pod): New target. + * gccbrig.texi: New file. + 2017-08-04 Henry Linjamäki Fix PR 81713 diff --git a/gcc/brig/Make-lang.in b/gcc/brig/Make-lang.in index d7566bfe365..23ddc033605 100644 --- a/gcc/brig/Make-lang.in +++ b/gcc/brig/Make-lang.in @@ -93,25 +93,25 @@ brig1$(exeext): $(BRIG_OBJS) attribs.o $(BACKEND) $(LIBDEPS) # Documentation. -GO_TEXI_FILES = \ +BRIG_TEXI_FILES = \ brig/gccbrig.texi \ $(gcc_docdir)/include/fdl.texi \ $(gcc_docdir)/include/gpl_v3.texi \ $(gcc_docdir)/include/gcc-common.texi \ gcc-vers.texi -# doc/gccbrig.info: $(BRIG_TEXI_FILES) -# if test "x$(BUILD_INFO)" = xinfo; then \ -# rm -f doc/gccbrig.info*; \ -# $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \ -# -I $(gcc_docdir)/include -o $@ $<; \ -# else true; fi +doc/gccbrig.info: $(BRIG_TEXI_FILES) + if test "x$(BUILD_INFO)" = xinfo; then \ + rm -f doc/gccbrig.info*; \ + $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \ + -I $(gcc_docdir)/include -o $@ $<; \ + else true; fi -# doc/gccbrig.dvi: $(BRIG_TEXI_FILES) -# $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< +doc/gccbrig.dvi: $(BRIG_TEXI_FILES) + $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< -# doc/gccbrig.pdf: $(BRIG_TEXI_FILES) -# $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< +doc/gccbrig.pdf: $(BRIG_TEXI_FILES) + $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< $(build_htmldir)/brig/index.html: $(BRIG_TEXI_FILES) $(mkinstalldirs) $(@D) @@ -119,28 +119,32 @@ $(build_htmldir)/brig/index.html: $(BRIG_TEXI_FILES) $(TEXI2HTML) -I $(gcc_docdir) -I $(gcc_docdir)/include \ -I $(srcdir)/brig -o $(@D) $< +.INTERMEDIATE: gccbrig.pod + +gccbrig.pod: brig/gccbrig.texi + -$(TEXI2POD) -D gccbrig < $< > $@ + # Build hooks. brig.all.cross: gccbrig-cross$(exeext) brig.start.encap: gccbrig$(exeext) brig.rest.encap: -#brig.info: doc/gccbrig.info -brig.info: +brig.info: doc/gccbrig.info brig.dvi: doc/gccbrig.dvi brig.pdf: doc/gccbrig.pdf brig.html: $(build_htmldir)/brig/index.html -brig.srcinfo: #doc/gccbrig.info -# -cp -p $^ $(srcdir)/doc +brig.srcinfo: doc/gccbrig.info + -cp -p $^ $(srcdir)/doc brig.srcextra: brig.tags: force cd $(srcdir)/brig; \ etags -o TAGS.sub *.c *.h; \ etags --include TAGS.sub --include ../TAGS.sub -brig.man: -#brig.srcman: doc/gccbrig.1 -# -cp -p $^ $(srcdir)/doc +brig.man: doc/gccbrig.1 +brig.srcman: doc/gccbrig.1 + -cp -p $^ $(srcdir)/doc lang_checks += check-brig @@ -193,13 +197,13 @@ brig.install-html: $(build_htmldir)/brig fi; \ done -brig.install-man: #$(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext) +brig.install-man: $(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext) -#$(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext): doc/gccbrig.1 \ -# installdirs -# -rm -f $@ -# -$(INSTALL_DATA) $< $@ -# -chmod a-x $@ +$(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext): doc/gccbrig.1 \ + installdirs + -rm -f $@ + -$(INSTALL_DATA) $< $@ + -chmod a-x $@ brig.uninstall: rm -rf $(DESTDIR)$(bindir)/$(GCCBRIG_INSTALL_NAME)$(exeext) diff --git a/gcc/brig/gccbrig.texi b/gcc/brig/gccbrig.texi new file mode 100644 index 00000000000..9636c00f06c --- /dev/null +++ b/gcc/brig/gccbrig.texi @@ -0,0 +1,5 @@ +\input texinfo @c -*-texinfo-*- +@setfilename gccbrig.info +@settitle The GNU BRIG Compiler + +@bye