Makefile.in: Add install-pdf target as copied from automake v1.10 rules.
authorBrooks Moses <brooks.moses@codesourcery.com>
Fri, 2 Mar 2007 00:23:20 +0000 (00:23 +0000)
committerBrooks Moses <brooks@gcc.gnu.org>
Fri, 2 Mar 2007 00:23:20 +0000 (16:23 -0800)
* Makefile.in: Add install-pdf target as
copied from automake v1.10 rules.
* configure.ac: Add install-pdf to target list.
* configure: Regenerate.

From-SVN: r122466

gcc/ChangeLog
gcc/Makefile.in
gcc/configure
gcc/configure.ac

index c3d0a7e..1ddd423 100644 (file)
@@ -1,3 +1,10 @@
+2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       * Makefile.in: Add install-pdf target as
+       copied from automake v1.10 rules.
+       * configure.ac: Add install-pdf to target list.
+       * configure: Regenerate.
+
 2007-03-01  Paul Brook  <paul@codesourcery.com>
 
        * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
index 974f6b4..b29a52c 100644 (file)
@@ -3597,8 +3597,10 @@ doc/%.dvi: %.texi
 doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
        $(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
 
-pdf:: doc/gcc.pdf doc/gccint.pdf doc/gccinstall.pdf doc/cpp.pdf \
-      doc/cppinternals.pdf lang.pdf
+PDFFILES = doc/gcc.pdf doc/gccint.pdf doc/gccinstall.pdf doc/cpp.pdf \
+           doc/cppinternals.pdf
+
+pdf:: $(PDFFILES) lang.pdf
 
 doc/%.pdf: %.texi
        $(TEXI2PDF) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
@@ -3895,6 +3897,18 @@ $(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
          else true; fi; \
        else true; fi;
 
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: $(PDFFILES) lang.install-pdf
+       @$(NORMAL_INSTALL)
+       test -z "$(pdfdir)/gcc" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
+       @list='$(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
+
 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
 
 install-html: $(HTMLS_BUILD)
index e1f72d7..ba7be7c 100755 (executable)
@@ -16674,8 +16674,8 @@ done
 rm -f Make-hooks
 touch Make-hooks
 target_list="all.cross start.encap rest.encap tags \
-       install-common install-man install-info dvi pdf html \
-       uninstall info man srcextra srcman srcinfo \
+       install-common install-man install-info install-pdf dvi pdf \
+       html uninstall info man srcextra srcman srcinfo \
        mostlyclean clean distclean maintainer-clean"
 
 for t in $target_list
index ef2249b..e64d106 100644 (file)
@@ -3574,8 +3574,8 @@ done
 rm -f Make-hooks
 touch Make-hooks
 target_list="all.cross start.encap rest.encap tags \
-       install-common install-man install-info dvi pdf html \
-       uninstall info man srcextra srcman srcinfo \
+       install-common install-man install-info install-pdf dvi pdf \
+       html uninstall info man srcextra srcman srcinfo \
        mostlyclean clean distclean maintainer-clean"
 
 for t in $target_list