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
This commit is contained in:
Thomas Schwinge 2017-09-17 14:11:40 +02:00 committed by Thomas Schwinge
parent e15954568e
commit 7ac3ed134b
3 changed files with 44 additions and 24 deletions

View 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

View 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)

5
gcc/brig/gccbrig.texi Normal file
View File

@ -0,0 +1,5 @@
\input texinfo @c -*-texinfo-*-
@setfilename gccbrig.info
@settitle The GNU BRIG Compiler
@bye