This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Add install-pdf support
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Thu, 29 Jan 2009 01:25:40 +0000 (UTC)
- Subject: Add install-pdf support
This patch adds support for the standard "make install-pdf" target to
binutils. This is done the same way as the install-html support:
rules taken from current automake. (Those parts will be obsolete when
binutils eventually moves to newer autoconf and automake, but that is
a complicated project involving coordination among several projects
sharing the same toplevel. The dummy targets in directories with no
PDF manuals will still be needed then.)
Tested with no regressions with cross to arm-none-eabi. OK to commit?
bfd:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am
and install-pdf-recursive targets. Define pdfdir.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate
* doc/Makefile.in: Regenerate.
binutils:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
etc:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* configure: Regenerate.
gas:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
gprof:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
ld:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
opcodes:
2009-01-29 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-pdf target.
* po/Make-in: Add install-pdf target.
* Makefile.in: Regenerate.
diff -rupN binutils.orig/bfd/Makefile.am binutils/bfd/Makefile.am
--- binutils.orig/bfd/Makefile.am 2009-01-16 08:02:23.000000000 +0000
+++ binutils/bfd/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -19,6 +19,7 @@ bfdincludedir = @bfdincludedir@
datarootdir = @datarootdir@
docdir = @docdir@
htmldir = @htmldir@
+pdfdir = @pdfdir@
bfdlib_LTLIBRARIES = libbfd.la
@@ -714,6 +715,35 @@ po/BLD-POTFILES.in: @MAINT@ Makefile $(B
all diststuff: info
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+install-pdf: install-pdf-recursive
+
+install-pdf-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
.PHONY: install-html install-html-am install-html-recursive
install-html: install-html-recursive
diff -rupN binutils.orig/bfd/configure.in binutils/bfd/configure.in
--- binutils.orig/bfd/configure.in 2009-01-16 08:02:23.000000000 +0000
+++ binutils/bfd/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -1063,10 +1063,11 @@ sed -e '/SRC-POTFILES =/r po/SRC-POTFILE
-e "s,@GMOFILES@,$GMOFILES," \
po/Makefile.in > po/Makefile]],[[]])
-dnl Required by html and install-html
+dnl Required by html, pdf, install-pdf and install-html
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
AC_OUTPUT
diff -rupN binutils.orig/bfd/doc/Makefile.am binutils/bfd/doc/Makefile.am
--- binutils.orig/bfd/doc/Makefile.am 2008-08-24 03:57:28.000000000 +0000
+++ binutils/bfd/doc/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -296,6 +296,20 @@ MAINTAINERCLEANFILES = $(DOCFILES)
# cygnus option.
install: install-info
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-am
+
+install-pdf-am: $(PDFS)
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+ @list='$(PDFS)'; 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__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
install-html: install-html-am
diff -rupN binutils.orig/bfd/po/Make-in binutils/bfd/po/Make-in
--- binutils.orig/bfd/po/Make-in 2007-08-17 01:04:48.000000000 +0000
+++ binutils/bfd/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -127,6 +127,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
diff -rupN binutils.orig/binutils/Makefile.am binutils/binutils/Makefile.am
--- binutils.orig/binutils/Makefile.am 2008-08-25 04:38:13.000000000 +0000
+++ binutils/binutils/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -116,6 +116,35 @@ OPCODES = ../opcodes/libopcodes.la
LIBIBERTY = ../libiberty/libiberty.a
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+install-pdf: install-pdf-recursive
+
+install-pdf-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
.PHONY: install-html install-html-am install-html-recursive
install-html: install-html-recursive
diff -rupN binutils.orig/binutils/configure.in binutils/binutils/configure.in
--- binutils.orig/binutils/configure.in 2009-01-16 08:02:26.000000000 +0000
+++ binutils/binutils/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -447,6 +447,7 @@ AC_SUBST(EMULATION_VECTOR)
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
AC_OUTPUT
diff -rupN binutils.orig/binutils/doc/Makefile.am binutils/binutils/doc/Makefile.am
--- binutils.orig/binutils/doc/Makefile.am 2007-08-13 01:52:58.000000000 +0000
+++ binutils/binutils/doc/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -161,6 +161,20 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefil
# cygnus option.
install-data-local: install-info
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-am
+
+install-pdf-am: $(PDFS)
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+ @list='$(PDFS)'; 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__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
install-html: install-html-am
diff -rupN binutils.orig/binutils/po/Make-in binutils/binutils/po/Make-in
--- binutils.orig/binutils/po/Make-in 2007-08-17 01:04:48.000000000 +0000
+++ binutils/binutils/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -113,6 +113,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
diff -rupN binutils.orig/etc/configure.in binutils/etc/configure.in
--- binutils.orig/etc/configure.in 2006-04-06 21:49:30.000000000 +0000
+++ binutils/etc/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -7,6 +7,6 @@ AC_PROG_INSTALL
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
-
+AC_SUBST(pdfdir)
AC_OUTPUT(Makefile)
diff -rupN binutils.orig/gas/Makefile.am binutils/gas/Makefile.am
--- binutils.orig/gas/Makefile.am 2008-12-23 19:10:20.000000000 +0000
+++ binutils/gas/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -714,6 +714,35 @@ MOSTLYCLEANFILES = $(STAGESTUFF) core \
CLEANFILES = dep.sed DEPTC DEPTCA DEPOBJ DEPOBJA DEP2 DEP2A DEP1 DEPA DEP DEPDIR
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+install-pdf: install-pdf-recursive
+
+install-pdf-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
.PHONY: install-html install-html-am install-html-recursive
install-html: install-html-recursive
diff -rupN binutils.orig/gas/configure.in binutils/gas/configure.in
--- binutils.orig/gas/configure.in 2009-01-16 08:02:28.000000000 +0000
+++ binutils/gas/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -692,10 +692,11 @@ AC_CHECK_DECLS([vsnprintf])
BFD_BINARY_FOPEN
-dnl Required for html and install-html targets.
+dnl Required for html, pdf, install-pdf and install-html targets.
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
dnl This must come last.
diff -rupN binutils.orig/gas/doc/Makefile.am binutils/gas/doc/Makefile.am
--- binutils.orig/gas/doc/Makefile.am 2008-12-23 19:10:21.000000000 +0000
+++ binutils/gas/doc/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -71,6 +71,20 @@ CPU_DOCS = \
# cygnus option.
install-data-local: install-info
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-am
+
+install-pdf-am: $(PDFS)
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+ @list='$(PDFS)'; 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__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
install-html: install-html-am
diff -rupN binutils.orig/gas/po/Make-in binutils/gas/po/Make-in
--- binutils.orig/gas/po/Make-in 2007-08-17 01:04:50.000000000 +0000
+++ binutils/gas/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -113,6 +113,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
diff -rupN binutils.orig/gprof/Makefile.am binutils/gprof/Makefile.am
--- binutils.orig/gprof/Makefile.am 2008-08-25 04:38:45.000000000 +0000
+++ binutils/gprof/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -83,6 +83,47 @@ gprof.1: $(srcdir)/gprof.texi config.tex
(rm -f $@.T$$$$ && exit 1)
rm -f gprof.pod
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-recursive install-pdf-am
+
+install-pdf-am: $(PDFS)
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+ @list='$(PDFS)'; 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
+
+install-pdf-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
.PHONY: install-html install-html-am install-html-recursive
html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
diff -rupN binutils.orig/gprof/configure.in binutils/gprof/configure.in
--- binutils.orig/gprof/configure.in 2008-09-11 19:02:02.000000000 +0000
+++ binutils/gprof/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -52,10 +52,11 @@ AC_SEARCH_LIBS(fabs, m)
AM_BINUTILS_WARNINGS
-dnl Required by html and install-html
+dnl Required by html, pdf, install-pdf and install-html
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
AC_OUTPUT
diff -rupN binutils.orig/gprof/po/Make-in binutils/gprof/po/Make-in
--- binutils.orig/gprof/po/Make-in 2007-08-17 01:04:50.000000000 +0000
+++ binutils/gprof/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -113,6 +113,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
diff -rupN binutils.orig/ld/Makefile.am binutils/ld/Makefile.am
--- binutils.orig/ld/Makefile.am 2009-01-12 00:23:57.000000000 +0000
+++ binutils/ld/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -1853,6 +1853,47 @@ mostlyclean-local:
-rm -rf tmpdir
CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 spu_ovl.s spu_ovl.o spu_icache.s spu_icache.o
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-recursive install-pdf-am
+
+install-pdf-am: $(PDFS)
+ @$(NORMAL_INSTALL)
+ test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+ @list='$(PDFS)'; 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
+
+install-pdf-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
.PHONY: install-html install-html-am install-html-recursive
html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
diff -rupN binutils.orig/ld/configure.in binutils/ld/configure.in
--- binutils.orig/ld/configure.in 2008-10-08 15:58:25.000000000 +0000
+++ binutils/ld/configure.in 2009-01-29 01:11:29.000000000 +0000
@@ -303,10 +303,11 @@ if test x${EXTRA_SHLIB_EXTENSION} != x ;
[Additional extension a shared object might have.])
fi
-dnl Required by html and install-html
+dnl Required by html, pdf, install-pdf and install-html
AC_SUBST(datarootdir)
AC_SUBST(docdir)
AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
AC_CONFIG_FILES(Makefile po/Makefile.in:po/Make-in)
AC_OUTPUT
diff -rupN binutils.orig/ld/po/Make-in binutils/ld/po/Make-in
--- binutils.orig/ld/po/Make-in 2007-08-17 01:04:52.000000000 +0000
+++ binutils/ld/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -113,6 +113,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
diff -rupN binutils.orig/opcodes/Makefile.am binutils/opcodes/Makefile.am
--- binutils.orig/opcodes/Makefile.am 2008-12-24 09:58:03.000000000 +0000
+++ binutils/opcodes/Makefile.am 2009-01-29 01:11:29.000000000 +0000
@@ -16,6 +16,9 @@ AM_CFLAGS = $(WARN_CFLAGS)
bfdlibdir = @bfdlibdir@
bfdincludedir = @bfdincludedir@
+.PHONY: install-pdf
+install-pdf:
+
.PHONY: install-html
install-html:
diff -rupN binutils.orig/opcodes/po/Make-in binutils/opcodes/po/Make-in
--- binutils.orig/opcodes/po/Make-in 2007-08-17 01:04:52.000000000 +0000
+++ binutils/opcodes/po/Make-in 2009-01-29 01:11:29.000000000 +0000
@@ -113,6 +113,7 @@ install: install-exec install-data
install-exec:
install-info:
install-html:
+install-pdf:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
--
Joseph S. Myers
joseph@codesourcery.com