This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add "make pdf" target to Ada makefiles as well.


The "make pdf" patch that I submitted a week ago didn't include the necessary changes to the gcc/ada/ and libada/ makefiles, because at the time I didn't have an Ada-enabled build system to test them on. I've since corrected that, and the attached patch completes the addition of "pdf" targets to the entire GCC source tree, so far as I know.

Tested with "make bootstrap" and "make pdf", on i686-pc-cygwin. Ok for trunk?

- Brooks

--/gcc/ada------------------------------------------------------
2006-10-16  Brooks Moses  <bmoses@stanford.edu>

	* Makefile.in: Add TEXI2PDF definition.
	* Make-lang.in: Add "ada.pdf" target.

--/libada/------------------------------------------------------
2006-10-16  Brooks Moses  <bmoses@stanford.edu>

* Makefile.in: Add dummy "pdf" target.

----------------------------------------------------------------
Index: gcc/ada/Makefile.in
===================================================================
--- gcc/ada/Makefile.in	(revision 117740)
+++ gcc/ada/Makefile.in	(working copy)
@@ -114,6 +114,7 @@
 INSTALL_DATA_DATE = cp -p
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
+TEXI2PDF = texi2pdf
 GNATBIND = $(STAGE_PREFIX)gnatbind
 GNATBIND_FLAGS = -static -x
 ADA_CFLAGS =
Index: gcc/ada/Make-lang.in
===================================================================
--- gcc/ada/Make-lang.in	(revision 117740)
+++ gcc/ada/Make-lang.in	(working copy)
@@ -23,7 +23,7 @@
 # Each language makefile fragment must provide the following targets:
 #
 # foo.all.cross, foo.start.encap, foo.rest.encap,
-# foo.install-common, foo.install-man, foo.install-info, foo.dvi,
+# foo.install-common, foo.install-man, foo.install-info, foo.dvi, foo.pdf
 # foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean,
 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
 #
@@ -431,6 +431,9 @@
 ada.dvi: doc/gnat_ugn_unw.dvi \
       doc/gnat_rm.dvi doc/gnat-style.dvi
 
+ada.pdf: doc/gnat_ugn_unw.pdf \
+      doc/gnat_rm.pdf doc/gnat-style.pdf
+
 ada.html:
 
 doc/gnat_ugn_unw.dvi: doc/gnat_ugn_unw.texi $(gcc_docdir)/include/fdl.texi	\
@@ -444,6 +447,17 @@
 doc/gnat-style.dvi: ada/gnat-style.texi $(gcc_docdir)/include/fdl.texi
 	$(TEXI2DVI) -c -I $(abs_docdir)/include -o $@ $<
 
+doc/gnat_ugn_unw.pdf: doc/gnat_ugn_unw.texi $(gcc_docdir)/include/fdl.texi	\
+	$(gcc_docdir)/include/gcc-common.texi gcc-vers.texi
+	$(TEXI2PDF) -c -I $(abs_docdir)/include -o $@ $<
+
+doc/gnat_rm.pdf: ada/gnat_rm.texi $(gcc_docdir)/include/fdl.texi	\
+	$(gcc_docdir)/include/gcc-common.texi gcc-vers.texi
+	$(TEXI2PDF) -c -I $(abs_docdir)/include -o $@ $<
+
+doc/gnat-style.pdf: ada/gnat-style.texi $(gcc_docdir)/include/fdl.texi
+	$(TEXI2PDF) -c -I $(abs_docdir)/include -o $@ $<
+
 
 # Install hooks:
 # gnat1 is installed elsewhere as part of $(COMPILERS).
Index: libada/Makefile.in
===================================================================
--- libada/Makefile.in	(revision 117740)
+++ libada/Makefile.in	(working copy)
@@ -116,6 +116,9 @@
 # Build DVI (none here).
 dvi:
 
+# Build PDF (none here).
+pdf:
+
 # Build html (none here).
 html:
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]