From dd15109df5f5d35f4d11226a6642e1ae2bfeade1 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 5 Mar 2007 22:15:41 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 6 ++++++ libiberty/Makefile.in | 19 ++++++++++++++++++- libiberty/testsuite/Makefile.in | 3 ++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 34e01a8d07..6ac77d7cc1 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2007-03-01 Brooks Moses + + * Makefile.in: Add install-pdf target as copied from + automake v1.10 rules. + * testsuite/Makefile.in: Add dummy install-pdf target. + 2007-03-01 Peter Breitenlohner Eric Botcazou diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index 570d2e8ba1..90686f00b1 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -245,7 +245,24 @@ info: libiberty.info info-subdir install-info: install-info-subdir clean-info: clean-info-subdir dvi: libiberty.dvi dvi-subdir -pdf: libiberty.pdf pdf-subdir + +LIBIBERTY_PDFFILES = libiberty.pdf + +pdf: $(LIBIBERTY_PDFFILES) pdf-subdir + +.PHONY: install-pdf + +pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`; + +install-pdf: $(LIBIBERTY_PDFFILES) + @$(NORMAL_INSTALL) + test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)" + @list='$(LIBIBERTY_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)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ + done # html, install-html targets HTMLS = libiberty.html diff --git a/libiberty/testsuite/Makefile.in b/libiberty/testsuite/Makefile.in index 6979d941ae..56800a7a7c 100644 --- a/libiberty/testsuite/Makefile.in +++ b/libiberty/testsuite/Makefile.in @@ -73,7 +73,8 @@ test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a $(srcdir)/test-expandargv.c ../libiberty.a # Standard (either GNU or Cygnus) rules we don't use. -html install-html info install-info clean-info dvi pdf install etags tags installcheck: +html install-html info install-info clean-info dvi pdf install-pdf \ +install etags tags installcheck: # The standard clean rules. mostlyclean: -- 2.11.0