Fix gccbrig documentation build
authorThomas Schwinge <thomas@codesourcery.com>
Sun, 17 Sep 2017 12:11:40 +0000 (14:11 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Sun, 17 Sep 2017 12:11:40 +0000 (14:11 +0200)
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

gcc/brig/ChangeLog
gcc/brig/Make-lang.in
gcc/brig/gccbrig.texi [new file with mode: 0644]

index 08045329eeba1692d68ef407433db75d3caa6468..ebf31c43a825e9d91729ba726dd587484eb59a3b 100644 (file)
@@ -1,3 +1,14 @@
+2017-09-17  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * 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  <henry.linjamaki@parmance.com>
 
        Fix PR 81713
index d7566bfe3651a27204402f2dfea485bb12f2f26a..23ddc0336054baee2871b6712a041757b4a21ecb 100644 (file)
@@ -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 (file)
index 0000000..9636c00
--- /dev/null
@@ -0,0 +1,5 @@
+\input texinfo @c -*-texinfo-*-
+@setfilename gccbrig.info
+@settitle The GNU BRIG Compiler
+
+@bye