diff options
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/Make-lang.in | 21 |
2 files changed, 22 insertions, 4 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b835360..f82725b 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> + + * Make-lang.in: Add install-pdf target as copied from + automake v1.10 rules. + 2007-02-28 Andreas Schwab <schwab@suse.de> * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on diff --git a/gcc/ada/Make-lang.in b/gcc/ada/Make-lang.in index 7e4c9a8..4d14dd2 100644 --- a/gcc/ada/Make-lang.in +++ b/gcc/ada/Make-lang.in @@ -23,8 +23,9 @@ # 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.pdf -# foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean, +# foo.install-common, foo.install-man, foo.install-info, foo.install-pdf, +# foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall, +# foo.mostlyclean, foo.clean, foo.distclean, # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4 # # where `foo' is the name of the language. @@ -434,8 +435,20 @@ ada.install-info: $(DESTDIR)$(infodir)/gnat_ugn_unw.info \ 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_PDFFILES = doc/gnat_ugn_unw.pdf \ + doc/gnat_rm.pdf doc/gnat-style.pdf + +ada.pdf: $(ADA_PDFFILES) + +ada.install-pdf: $(ADA_PDFFILES) + @$(NORMAL_INSTALL) + test -z "$(pdfdir)/gcc" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc" + @list='$(ADA_PDFFILES)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(pdf__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \ + done ada.html: |