From: Alexandre Duret-Lutz Date: Thu, 30 Dec 2004 23:10:43 +0000 (+0000) Subject: Support for `install-dvi', `install-html', `install-ps', and X-Git-Tag: Release-1-9b~220 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=d45031c34d38e86d838dd10ace3f07bdd47b9c78;p=automake.git Support for `install-dvi', `install-html', `install-ps', and `install-pdf', as recently introduced into the GNU Coding Standard. * automake.in (handle_factored_dependencies): Reject uninstall-dvi-local, uninstall-html-local, uninstall-info-local, uninstall-ps-local, and uninstall-pdf-local. Allow install-info-local even when no-installinfo is not used. (handle_data): Allow datarootdir, dvidir, htmldir, pdfdir, and psdir. (%standard_prefix): Declare these new standard directory variables. * doc/automake.texi (Texinfo, Third-Party Makefiles): Document install-dvi, install-html, install-pdf, and install-ps. (Extending): Document install-local-dvi, install-local-html, install-local-info, install-local-pdf, and install-local-ps. * lib/Automake/Rule.pm (%dependencies): Add new install rules, and remove uninstall-info. * /cvs/automake/automake/lib/am/texinfos.am (install-dvi, install-dvi-am, install-dvi-recursive, install-html, install-html-am, install-html-recursive, install-pdf, install-pdf-am, install-pdf-recursive, install-ps, install-ps-am, install-ps-recursive, uninstall-dvi-am, uninstall-html-am, uninstall-pdf-am, uninstall-ps-am): New rules. (uninstall-info): Delete. * tests/txinfo21.test: Augment to check for these new rules. * tests/exdir2.test: Do not use `htmldir' as example of undefined directory. * tests/overrid.test: Do not be fooled by install-ps and install-html. * tests/txinfo10.test: Do not grep for uninstall-info-recursive. --- diff --git a/ChangeLog b/ChangeLog index f0c26d36..d3cc680a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,35 @@ +2004-12-30 Alexandre Duret-Lutz + + Support for `install-dvi', `install-html', `install-ps', and + `install-pdf', as recently introduced into the GNU Coding + Standard. + + * automake.in (handle_factored_dependencies): Reject + uninstall-dvi-local, uninstall-html-local, uninstall-info-local, + uninstall-ps-local, and uninstall-pdf-local. Allow + install-info-local even when no-installinfo is not used. + (handle_data): Allow datarootdir, dvidir, htmldir, pdfdir, and psdir. + (%standard_prefix): Declare these new standard directory variables. + * doc/automake.texi (Texinfo, Third-Party Makefiles): Document + install-dvi, install-html, install-pdf, and install-ps. + (Extending): Document install-local-dvi, install-local-html, + install-local-info, install-local-pdf, and install-local-ps. + * lib/Automake/Rule.pm (%dependencies): Add new install rules, + and remove uninstall-info. + * /cvs/automake/automake/lib/am/texinfos.am (install-dvi, + install-dvi-am, install-dvi-recursive, install-html, + install-html-am, install-html-recursive, install-pdf, + install-pdf-am, install-pdf-recursive, install-ps, install-ps-am, + install-ps-recursive, uninstall-dvi-am, uninstall-html-am, + uninstall-pdf-am, uninstall-ps-am): New rules. + (uninstall-info): Delete. + * tests/txinfo21.test: Augment to check for these new rules. + * tests/exdir2.test: Do not use `htmldir' as example of + undefined directory. + * tests/overrid.test: Do not be fooled by install-ps and + install-html. + * tests/txinfo10.test: Do not grep for uninstall-info-recursive. + 2004-12-27 Alexandre Duret-Lutz * automake.in (Preprocessed Fortran): Fix the definition of FCLINK. diff --git a/Makefile.in b/Makefile.in index 1ce42be2..c9a94f66 100644 --- a/Makefile.in +++ b/Makefile.in @@ -60,10 +60,11 @@ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags @@ -237,7 +238,6 @@ uninstall-binSCRIPTS: echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done -uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -559,14 +559,22 @@ info-am: install-data-am: +install-dvi: install-dvi-recursive + install-exec-am: install-binSCRIPTS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook +install-html: install-html-recursive + install-info: install-info-recursive install-man: +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -587,12 +595,10 @@ ps: ps-recursive ps-am: -uninstall-am: uninstall-binSCRIPTS uninstall-info-am +uninstall-am: uninstall-binSCRIPTS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook -uninstall-info: uninstall-info-recursive - .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-exec-am install-strip uninstall-am @@ -603,13 +609,14 @@ uninstall-info: uninstall-info-recursive distclean-generic distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binSCRIPTS install-data \ - install-data-am install-exec install-exec-am install-exec-hook \ - install-info install-info-am install-man install-strip \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-exec-hook install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook \ - uninstall-info-am + uninstall uninstall-am uninstall-binSCRIPTS uninstall-hook install-exec-hook: diff --git a/NEWS b/NEWS index 4f99b34f..efa9443f 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,24 @@ New in 1.9a: can be specified using AM_LIBTOOLFLAGS and target_LIBTOOLFLAGS. - aclocal now also supports -Wmumble and -Wno-mumble options. + + - New targets mandated by GNU Coding Standards: + install-dvi + install-html + install-ps + install-pdf + By default they will only install Texinfo manuals. + You can customize them with *-local variants: + install-dvi-local + install-html-local + install-ps-local + install-pdf-local + + - The undocumented recursive target `uninstall-info' no longer exists. + (`uninstall' is in charge of removing all possible documentation + flavors, including optional formats such as dvi, ps, or info even + when `no-installinfo' is used.) + New in 1.9: diff --git a/automake.in b/automake.in index eb48ee92..800c013c 100755 --- a/automake.in +++ b/automake.in @@ -236,11 +236,11 @@ my @common_sometimes = # Standard directories from the GNU Coding Standards, and additional # pkg* directories from Automake. Stored in a hash for fast member check. my %standard_prefix = - map { $_ => 1 } (qw(bin data exec include info lib libexec lisp - localstate man man1 man2 man3 man4 man5 man6 - man7 man8 man9 oldinclude pkgdatadir - pkgincludedir pkglibdir sbin sharedstate - sysconf)); + map { $_ => 1 } (qw(bin data dataroot dvi exec html include info + lib libexec lisp localstate man man1 man2 man3 + man4 man5 man6 man7 man8 man9 oldinclude pdf + pkgdatadir pkgincludedir pkglibdir ps sbin + sharedstate sysconf)); # Copyright on generated Makefile.ins. my $gen_copyright = "\ @@ -3322,7 +3322,8 @@ sub handle_man_pages sub handle_data { &am_install_var ('-noextra', '-candist', 'data', 'DATA', - 'data', 'sysconf', 'sharedstate', 'localstate', + 'data', 'dataroot', 'dvi', 'html', 'pdf', 'ps', + 'sysconf', 'sharedstate', 'localstate', 'pkgdata', 'lisp', 'noinst', 'check'); } @@ -4410,10 +4411,15 @@ sub handle_factored_dependencies { # Reject bad hooks. foreach my $utarg ('uninstall-data-local', 'uninstall-data-hook', - 'uninstall-exec-local', 'uninstall-exec-hook') + 'uninstall-exec-local', 'uninstall-exec-hook', + 'uninstall-dvi-local', + 'uninstall-html-local', + 'uninstall-info-local', + 'uninstall-pdf-local', + 'uninstall-ps-local') { my $x = $utarg; - $x =~ s/(data|exec)-//; + $x =~ s/-.*-/-/; reject_rule ($utarg, "use `$x', not `$utarg'"); } @@ -4421,11 +4427,6 @@ sub handle_factored_dependencies "use `install-data-local' or `install-exec-local', " . "not `install-local'"); - reject_rule ('install-info-local', - "`install-info-local' target defined but " - . "`no-installinfo' option not in use") - unless option 'no-installinfo'; - # Install the -local hooks. foreach (keys %dependencies) { diff --git a/doc/Makefile.in b/doc/Makefile.in index 53bc8b05..6ce5e91c 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -66,6 +66,12 @@ MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) DVIPS = dvips am__installdirs = "$(DESTDIR)$(infodir)" +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -248,6 +254,22 @@ maintainer-clean-vti: .dvi.ps: $(DVIPS) -o $@ $< +uninstall-dvi-am: + @$(NORMAL_UNINSTALL) + @list='$(DVIS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ + rm -f "$(DESTDIR)$(dvidir)/$$f"; \ + done + +uninstall-html-am: + @$(NORMAL_UNINSTALL) + @list='$(HTMLS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ + rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ + done + uninstall-info-am: @$(PRE_UNINSTALL) @if (install-info --version && \ @@ -264,12 +286,28 @@ uninstall-info-am: for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ - (if cd "$(DESTDIR)$(infodir)"; then \ + (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ else :; fi); \ done +uninstall-pdf-am: + @$(NORMAL_UNINSTALL) + @list='$(PDFS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ + done + +uninstall-ps-am: + @$(NORMAL_UNINSTALL) + @list='$(PSS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ + rm -f "$(DESTDIR)$(psdir)/$$f"; \ + done + dist-info: $(INFO_DEPS) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; \ @@ -431,8 +469,37 @@ info-am: $(INFO_DEPS) install-data-am: install-info-am +install-dvi: install-dvi-am + +install-dvi-am: $(DVIS) + @$(NORMAL_INSTALL) + test -z "$(dvidir)" || $(mkdir_p) "$(DESTDIR)$(dvidir)" + @list='$(DVIS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ + done install-exec-am: +install-html: install-html-am + +install-html-am: $(HTMLS) + @$(NORMAL_INSTALL) + test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" + @list='$(HTMLS)'; for p in $$list; do \ + if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + if test -d "$$d$$p"; then \ + echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ + $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ + echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ + else \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + fi; \ + done install-info: install-info-am install-info-am: $(INFO_DEPS) @@ -467,6 +534,28 @@ install-info-am: $(INFO_DEPS) else : ; fi install-man: +install-pdf: install-pdf-am + +install-pdf-am: $(PDFS) + @$(NORMAL_INSTALL) + test -z "$(pdfdir)" || $(mkdir_p) "$(DESTDIR)$(pdfdir)" + @list='$(PDFS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ + done +install-ps: install-ps-am + +install-ps-am: $(PSS) + @$(NORMAL_INSTALL) + test -z "$(psdir)" || $(mkdir_p) "$(DESTDIR)$(psdir)" + @list='$(PSS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \ + done installcheck-am: maintainer-clean: maintainer-clean-am @@ -486,20 +575,25 @@ ps: ps-am ps-am: $(PSS) -uninstall-am: uninstall-info-am +uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \ + uninstall-pdf-am uninstall-ps-am .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ ctags dist-info distclean distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ + install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-aminfo \ maintainer-clean-generic maintainer-clean-vti mostlyclean \ mostlyclean-aminfo mostlyclean-generic mostlyclean-vti pdf \ - pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am + pdf-am ps ps-am tags uninstall uninstall-am uninstall-dvi-am \ + uninstall-html-am uninstall-info-am uninstall-pdf-am \ + uninstall-ps-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/doc/automake.texi b/doc/automake.texi index 92e5d8b4..88ca8e6d 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -5437,12 +5437,32 @@ here. Any Texinfo source file must end in the @file{.texi}, @file{.txi}, or @file{.texinfo} extension. We recommend @file{.texi} for new manuals. -Automake generates rules to build @file{.info}, @file{.dvi}, @file{.ps}, -@file{.pdf} and @file{.html} files from your Texinfo sources. -The @file{.info} files are built by @code{make all} and installed -by @code{make install} (unless you use @code{no-installinfo}, see below). -The other files can be built on request by @code{make dvi}, @code{make ps}, -@code{make pdf} and @code{make html}. +Automake generates rules to build @file{.info}, @file{.dvi}, +@file{.ps}, @file{.pdf} and @file{.html} files from your Texinfo +sources. Following the GNU Coding Standards, only the @file{.info} +files are built by @code{make all} and installed by @code{make +install} (unless you use @code{no-installinfo}, see below). +Furthermore, @file{.info} files are automatically distributed so that +Texinfo is not a prerequisite for installing your package. + +@trindex dvi +@trindex html +@trindex pdf +@trindex ps +@trindex install-dvi +@trindex install-html +@trindex install-pdf +@trindex install-ps +Other documentation formats can be built on request by @code{make +dvi}, @code{make ps}, @code{make pdf} and @code{make html}, and they +can be installed with @code{make install-dvi}, @code{make install-ps}, +@code{make install-pdf} and @code{make install-html} explicitly. +@code{make uninstall} will remove everything: the Texinfo +documentation installed by default as well as all the above optional +formats. + +All these targets can be extended using @code{-local} rules +(@pxref{Extending}). @cindex Texinfo flag, @code{VERSION} @cindex Texinfo flag, @code{UPDATED} @@ -5524,8 +5544,11 @@ requirement for @file{texinfo.tex}. Use of the variable @trindex install-info Automake generates an @code{install-info} rule; some people apparently -use this. By default, info pages are installed by @samp{make install}. -This can be prevented via the @code{no-installinfo} option. +use this. By default, info pages are installed by @samp{make +install}, so running @code{make install-info} is pointless. This can +be prevented via the @code{no-installinfo} option. In this case, +@file{.info} files are not installed by default, and user must +request this explicitly using @code{make install-info} The following variables are used by the Texinfo build rules. @@ -7068,9 +7091,20 @@ standard target with these user-supplied targets. @trindex check @trindex check-local @trindex install +@trindex install-data @trindex install-data-local +@trindex install-dvi +@trindex install-dvi-local @trindex install-exec @trindex install-exec-local +@trindex install-html +@trindex install-html-local +@trindex install-info +@trindex install-info-local +@trindex install-pdf +@trindex install-pdf-local +@trindex install-ps +@trindex install-ps-local @trindex uninstall @trindex uninstall-local @trindex mostlyclean @@ -7086,13 +7120,15 @@ standard target with these user-supplied targets. The targets that support a local version are @code{all}, @code{info}, @code{dvi}, @code{ps}, @code{pdf}, @code{html}, @code{check}, -@code{install-data}, @code{install-exec}, @code{uninstall}, -@code{installdirs}, @code{installcheck} and the various @code{clean} targets +@code{install-data}, @code{install-dvi}, @code{install-exec}, +@code{install-html}, @code{install-info}, @code{install-pdf}, +@code{install-ps}, @code{uninstall}, @code{installdirs}, +@code{installcheck} and the various @code{clean} targets (@code{mostlyclean}, @code{clean}, @code{distclean}, and @code{maintainer-clean}). Note that there are no -@code{uninstall-exec-local} or @code{uninstall-data-local} targets; just -use @code{uninstall-local}. It doesn't make sense to uninstall just -data or just executables. +@code{uninstall-exec-local} or @code{uninstall-data-local} targets; +just use @code{uninstall-local}. It doesn't make sense to uninstall +just data or just executables. For instance, here is one way to install a file in @file{/etc}: @@ -7204,8 +7240,12 @@ are ready to use. @itemx uninstall Install or uninstall files (@pxref{Install}). -@item install-info -Install only the Texinfo documentation (@pxref{Texinfo}). +@item install-dvi +@itemx install-html +@itemx install-info +@itemx install-ps +@itemx install-pdf +Install only some specific documentation format (@pxref{Texinfo}). @item installdirs Create install directories, but do not install any files. diff --git a/doc/stamp-vti b/doc/stamp-vti index 849f8191..21e70223 100644 --- a/doc/stamp-vti +++ b/doc/stamp-vti @@ -1,4 +1,4 @@ -@set UPDATED 27 December 2004 +@set UPDATED 31 December 2004 @set UPDATED-MONTH December 2004 @set EDITION 1.9a @set VERSION 1.9a diff --git a/doc/version.texi b/doc/version.texi index 849f8191..21e70223 100644 --- a/doc/version.texi +++ b/doc/version.texi @@ -1,4 +1,4 @@ -@set UPDATED 27 December 2004 +@set UPDATED 31 December 2004 @set UPDATED-MONTH December 2004 @set EDITION 1.9a @set VERSION 1.9a diff --git a/lib/Automake/Makefile.in b/lib/Automake/Makefile.in index 352e7322..a3d76340 100644 --- a/lib/Automake/Makefile.in +++ b/lib/Automake/Makefile.in @@ -54,10 +54,11 @@ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -211,7 +212,6 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: install-dist_perllibDATA: $(dist_perllib_DATA) @$(NORMAL_INSTALL) test -z "$(perllibdir)" || $(mkdir_p) "$(DESTDIR)$(perllibdir)" @@ -461,12 +461,20 @@ info-am: install-data-am: install-dist_perllibDATA install-nodist_perllibDATA +install-dvi: install-dvi-recursive + install-exec-am: +install-html: install-html-recursive + install-info: install-info-recursive install-man: +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -485,10 +493,7 @@ ps: ps-recursive ps-am: -uninstall-am: uninstall-dist_perllibDATA uninstall-info-am \ - uninstall-nodist_perllibDATA - -uninstall-info: uninstall-info-recursive +uninstall-am: uninstall-dist_perllibDATA uninstall-nodist_perllibDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip @@ -498,14 +503,15 @@ uninstall-info: uninstall-info-recursive ctags-recursive distclean distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am \ - install-dist_perllibDATA install-exec install-exec-am \ + install-dist_perllibDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man \ - install-nodist_perllibDATA install-strip installcheck \ + install-nodist_perllibDATA install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-dist_perllibDATA uninstall-info-am \ - uninstall-nodist_perllibDATA + uninstall-dist_perllibDATA uninstall-nodist_perllibDATA Config.pm: Config.in Makefile diff --git a/lib/Automake/Rule.pm b/lib/Automake/Rule.pm index 25372e5c..8911993c 100644 --- a/lib/Automake/Rule.pm +++ b/lib/Automake/Rule.pm @@ -328,9 +328,16 @@ sub reset() 'install-man' => [], 'uninstall-man' => [], + 'install-dvi' => [], + 'install-dvi-am' => [], + 'install-html' => [], + 'install-html-am' => [], 'install-info' => [], 'install-info-am' => [], - 'uninstall-info' => [], + 'install-pdf' => [], + 'install-pdf-am' => [], + 'install-ps' => [], + 'install-ps-am' => [], 'installcheck-am' => [], diff --git a/lib/Automake/tests/Makefile.in b/lib/Automake/tests/Makefile.in index dd2c8fe4..3001f26c 100644 --- a/lib/Automake/tests/Makefile.in +++ b/lib/Automake/tests/Makefile.in @@ -159,7 +159,6 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: tags: TAGS TAGS: @@ -316,12 +315,20 @@ info-am: install-data-am: +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -340,18 +347,20 @@ ps: ps-am ps-am: -uninstall-am: uninstall-info-am +uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-TESTS check-am clean clean-generic \ distclean distclean-generic distdir dvi dvi-am html html-am \ info info-am install install-am install-data install-data-am \ - install-exec install-exec-am install-info install-info-am \ - install-man install-strip installcheck installcheck-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ - uninstall-am uninstall-info-am + uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/lib/Makefile.in b/lib/Makefile.in index 4ffb9fb8..ac949d02 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -57,10 +57,11 @@ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -187,7 +188,6 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: install-dist_pkgvdataDATA: $(dist_pkgvdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgvdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgvdatadir)" @@ -438,12 +438,20 @@ install-data-am: install-dist_pkgvdataDATA install-dist_scriptDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook +install-dvi: install-dvi-recursive + install-exec-am: +install-html: install-html-recursive + install-info: install-info-recursive install-man: +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + installcheck-am: installcheck-local maintainer-clean: maintainer-clean-recursive @@ -462,10 +470,7 @@ ps: ps-recursive ps-am: -uninstall-am: uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA \ - uninstall-info-am - -uninstall-info: uninstall-info-recursive +uninstall-am: uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-data-am install-strip @@ -475,14 +480,15 @@ uninstall-info: uninstall-info-recursive ctags-recursive distclean distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-data-hook \ - install-dist_pkgvdataDATA install-dist_scriptDATA install-exec \ - install-exec-am install-info install-info-am install-man \ + install-dist_pkgvdataDATA install-dist_scriptDATA install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installcheck-local \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA \ - uninstall-info-am + uninstall-dist_pkgvdataDATA uninstall-dist_scriptDATA install-data-hook: diff --git a/lib/am/Makefile.in b/lib/am/Makefile.in index 63a06d6c..3d486553 100644 --- a/lib/am/Makefile.in +++ b/lib/am/Makefile.in @@ -204,7 +204,6 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: install-dist_amDATA: $(dist_am_DATA) @$(NORMAL_INSTALL) test -z "$(amdir)" || $(mkdir_p) "$(DESTDIR)$(amdir)" @@ -307,12 +306,20 @@ info-am: install-data-am: install-dist_amDATA +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -331,19 +338,20 @@ ps: ps-am ps-am: -uninstall-am: uninstall-dist_amDATA uninstall-info-am +uninstall-am: uninstall-dist_amDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ - install-dist_amDATA install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ + install-dist_amDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-dist_amDATA \ - uninstall-info-am + pdf-am ps ps-am uninstall uninstall-am uninstall-dist_amDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index c0c8a4b0..15cb254a 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -111,16 +111,64 @@ am__installdirs += "$(DESTDIR)$(infodir)" install-data-am: install-info-am endif %?LOCAL-TEXIS% endif %?INSTALL-INFO% -.PHONY: install-info +.PHONY: \ + install-dvi install-dvi-am \ + install-html install-html-am \ + install-info install-info-am \ + install-pdf install-pdf-am \ + install-ps install-ps-am + if %?SUBDIRS% -RECURSIVE_TARGETS += install-info-recursive +RECURSIVE_TARGETS += \ + install-dvi-recursive \ + install-html-recursive \ + install-info-recursive \ + install-pdf-recursive \ + install-ps-recursive +install-dvi: install-dvi-recursive +install-html: install-html-recursive install-info: install-info-recursive +install-pdf: install-pdf-recursive +install-ps: install-ps-recursive else !%?SUBDIRS% +install-dvi: install-dvi-am +install-html: install-html-am install-info: install-info-am +install-pdf: install-pdf-am +install-ps: install-ps-am endif !%?SUBDIRS% -.PHONY: install-info-am if %?LOCAL-TEXIS% + +include inst-vars.am + +install-dvi-am: $(DVIS) + @$(NORMAL_INSTALL) + test -z "$(dvidir)" || $(mkdir_p) "$(DESTDIR)$(dvidir)" + @list='$(DVIS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ + done + +install-html-am: $(HTMLS) + @$(NORMAL_INSTALL) + test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" + @list='$(HTMLS)'; for p in $$list; do \ + if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + if test -d "$$d$$p"; then \ + echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ + $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ + echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ + else \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + fi; \ + done + install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)" @@ -180,8 +228,33 @@ install-info-am: $(INFO_DEPS) install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\ done; \ else : ; fi + +install-pdf-am: $(PDFS) + @$(NORMAL_INSTALL) + test -z "$(pdfdir)" || $(mkdir_p) "$(DESTDIR)$(pdfdir)" + @list='$(PDFS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ + done + +install-ps-am: $(PSS) + @$(NORMAL_INSTALL) + test -z "$(psdir)" || $(mkdir_p) "$(DESTDIR)$(psdir)" + @list='$(PSS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \ + done + else ! %?LOCAL-TEXIS% +install-dvi-am: +install-html-am: install-info-am: +install-pdf-am: +install-ps-am: endif ! %?LOCAL-TEXIS% @@ -189,13 +262,31 @@ endif ! %?LOCAL-TEXIS% ## Uninstalling. ## ## -------------- ## -?SUBDIRS?RECURSIVE_TARGETS += uninstall-info-recursive -?SUBDIRS?uninstall-info: uninstall-info-recursive -?INSTALL-INFO?uninstall-am: uninstall-info-am +if %?LOCAL-TEXIS% +.PHONY uninstall-am: \ + uninstall-dvi-am \ + uninstall-html-am \ + uninstall-info-am \ + uninstall-ps-am \ + uninstall-pdf-am -.PHONY: uninstall-info-am +uninstall-dvi-am: + @$(NORMAL_UNINSTALL) + @list='$(DVIS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ + rm -f "$(DESTDIR)$(dvidir)/$$f"; \ + done + +uninstall-html-am: + @$(NORMAL_UNINSTALL) + @list='$(HTMLS)'; for p in $$list; do \ + f=$(am__strip_dir) \ +## $f can be a directory, hence the -r. + echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ + rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ + done -if %?LOCAL-TEXIS% uninstall-info-am: @$(PRE_UNINSTALL) ## Run two loops here so that we can handle PRE_UNINSTALL and @@ -217,14 +308,28 @@ uninstall-info-am: relfile=`echo "$$file" | sed 's|^.*/||'`; \ ## DJGPP-style info files. See comment in install-info-am. relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ - (if cd "$(DESTDIR)$(infodir)"; then \ + (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ else :; fi); \ done -else ! %?LOCAL-TEXIS% -uninstall-info-am: -endif ! %?LOCAL-TEXIS% + +uninstall-pdf-am: + @$(NORMAL_UNINSTALL) + @list='$(PDFS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ + done + +uninstall-ps-am: + @$(NORMAL_UNINSTALL) + @list='$(PSS)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ + rm -f "$(DESTDIR)$(psdir)/$$f"; \ + done +endif %?LOCAL-TEXIS% if %?LOCAL-TEXIS% .PHONY: dist-info diff --git a/m4/Makefile.in b/m4/Makefile.in index 6552d965..94085884 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -198,7 +198,6 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: install-dist_m4dataDATA: $(dist_m4data_DATA) @$(NORMAL_INSTALL) test -z "$(m4datadir)" || $(mkdir_p) "$(DESTDIR)$(m4datadir)" @@ -302,12 +301,20 @@ info-am: install-data-am: install-dist_m4dataDATA +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -326,19 +333,21 @@ ps: ps-am ps-am: -uninstall-am: uninstall-dist_m4dataDATA uninstall-info-am +uninstall-am: uninstall-dist_m4dataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ - install-dist_m4dataDATA install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ + install-dist_m4dataDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am \ - uninstall-dist_m4dataDATA uninstall-info-am + uninstall-dist_m4dataDATA # We build amversion.m4 here, instead of from config.status, diff --git a/tests/Makefile.in b/tests/Makefile.in index fc6dd218..b2ae62e9 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -724,7 +724,6 @@ aclocal-${APIVERSION}: $(top_builddir)/config.status $(srcdir)/aclocal.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ automake-${APIVERSION}: $(top_builddir)/config.status $(srcdir)/automake.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -uninstall-info-am: tags: TAGS TAGS: @@ -882,12 +881,20 @@ info-am: install-data-am: +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -906,18 +913,20 @@ ps: ps-am ps-am: -uninstall-am: uninstall-info-am +uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-TESTS check-am clean clean-generic \ distclean distclean-generic distclean-local distdir dvi dvi-am \ html html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am + pdf-am ps ps-am uninstall uninstall-am distclean-local: diff --git a/tests/exdir2.test b/tests/exdir2.test index 1f21ef2f..9a9a7a7e 100755 --- a/tests/exdir2.test +++ b/tests/exdir2.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1998, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 1998, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -25,11 +25,11 @@ set -e cat > Makefile.am << 'EOF' -html_DATA = zot.html +quuz_DATA = zot.html pkgdata_DATA = qbert EOF $ACLOCAL AUTOMAKE_fails grep 'pkgdatadir' stderr && exit 1 -grep 'Makefile.am:1:.*htmldir.*undefined' stderr +grep 'Makefile.am:1:.*quuzdir.*undefined' stderr diff --git a/tests/overrid.test b/tests/overrid.test index 0c0d22e6..0ac3bcc9 100755 --- a/tests/overrid.test +++ b/tests/overrid.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -63,9 +63,9 @@ grep ps stderr && exit 1 # Test for another issue. Overriding html: should cause only one # html: rule to be output. -test `grep html: Makefile.in | wc -l` = 1 +test `grep '^html:' Makefile.in | wc -l` = 1 # ps: should be output in two conditions -test `grep ps: Makefile.in | wc -l` = 2 +test `grep '[^-]ps:' Makefile.in | wc -l` = 2 grep '@COND_TRUE@ps: mine' Makefile.in grep '@COND_FALSE@ps: ps-am' Makefile.in diff --git a/tests/txinfo10.test b/tests/txinfo10.test index c65648b5..89587018 100755 --- a/tests/txinfo10.test +++ b/tests/txinfo10.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -43,4 +43,3 @@ $AUTOMAKE grep dvi-recursive Makefile.in grep '[^-]info-recursive' Makefile.in grep '[^n]install-info-recursive' Makefile.in -grep uninstall-info-recursive Makefile.in diff --git a/tests/txinfo21.test b/tests/txinfo21.test index 66f1722c..265cc572 100755 --- a/tests/txinfo21.test +++ b/tests/txinfo21.test @@ -18,21 +18,30 @@ # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -# Test support for building HTML documentation. +# Test support for building HTML documentation, and the many +# install-DOC flavors. required='makeinfo-html tex' . ./defs || exit 1 set -e -cat >>configure.in <>configure.in <<\EOF AC_CONFIG_FILES([rec/Makefile]) + +# At the time of writing, Autoconf does not supplies any of these +# definitions (and those below are purposedly not those of the standard). +AC_SUBST([dvidir], ['${datadir}/${PACKAGE}/dvi']) +AC_SUBST([htmldir], ['${datadir}/${PACKAGE}/html']) +AC_SUBST([pdfdir], ['${datadir}/${PACKAGE}/pdf']) +AC_SUBST([psdir], ['${datadir}/${PACKAGE}/ps']) + AC_OUTPUT EOF cat > Makefile.am << 'END' SUBDIRS = rec -info_TEXINFOS = main.texi sub/main.texi +info_TEXINFOS = main.texi sub/main2.texi END cat > main.texi << 'END' @@ -45,12 +54,33 @@ Hello walls. END mkdir sub +cat > sub/main2.texi << 'END' +\input texinfo +@setfilename main2.info +@settitle main2 +@node Top +Hello walls. +@bye +END + mkdir rec -cp main.texi sub/main.texi -cp main.texi rec/main.texi +cat > rec/main3.texi << 'END' +\input texinfo +@setfilename main3.info +@settitle main3 +@node Top +Hello walls. +@bye +END cat > rec/Makefile.am << 'END' -info_TEXINFOS = main.texi +info_TEXINFOS = main3.texi + +install-pdf-local: + @$(mkdir_p) "$(pdfdir)" + :> "$(pdfdir)/hello" +uninstall-local: + rm -f "$(pdfdir)/hello" END $ACLOCAL @@ -65,8 +95,8 @@ $sleep # Test production of split-per-node HTML. $MAKE html test -d main.html -test -d sub/main.html -test -d rec/main.html +test -d sub/main2.html +test -d rec/main3.html # Rebuilding main.html should cause its timestamp to be updated. test `ls -1td main.texi main.html | sed 1q` = main.html @@ -77,18 +107,18 @@ test `ls -1td main.texi main.html | sed 1q` = main.html $MAKE clean test ! -d main.html -test ! -d sub/main.html -test ! -d rec/main.html +test ! -d sub/main2.html +test ! -d rec/main3.html # Test production of a single HTML file. MAKEINFOFLAGS=--no-split $MAKE -e html test -f main.html -test -f sub/main.html -test -f rec/main.html +test -f sub/main2.html +test -f rec/main3.html $MAKE clean test ! -f main.html -test ! -f sub/main.html -test ! -f rec/main.html +test ! -f sub/main2.html +test ! -f rec/main3.html # Make sure AM_MAKEINFOHTMLFLAGS is supported, and override AM_MAKEINFO. cat >>Makefile.am <<\EOF @@ -96,12 +126,55 @@ AM_MAKEINFOHTMLFLAGS=--no-split AM_MAKEINFOFLAGS=--unsupported-option EOF $AUTOMAKE -./configure +./configure --prefix "`pwd`" $MAKE html test -f main.html -test -f sub/main.html -test -d rec/main.html +test -f sub/main2.html +test -d rec/main3.html $MAKE clean test ! -f main.html -test ! -f sub/main.html -test ! -d rec/main.html +test ! -f sub/main2.html +test ! -d rec/main3.html + +$MAKE install-html +test -f share/txinfo21/html/main.html +test -f share/txinfo21/html/main2.html +test -d share/txinfo21/html/main3.html +$MAKE uninstall +test ! -f share/txinfo21/html/main.html +test ! -f share/txinfo21/html/main2.html +test ! -d share/txinfo21/html/main3.html + +$MAKE install-dvi +test -f share/txinfo21/dvi/main.dvi +test -f share/txinfo21/dvi/main2.dvi +test -f share/txinfo21/dvi/main3.dvi +$MAKE uninstall +test ! -f share/txinfo21/dvi/main.dvi +test ! -f share/txinfo21/dvi/main2.dvi +test ! -f share/txinfo21/dvi/main3.dvi + +(dvips --help 2>/dev/null >/dev/null) || exit 77 + +$MAKE install-ps +test -f share/txinfo21/ps/main.ps +test -f share/txinfo21/ps/main2.ps +test -f share/txinfo21/ps/main3.ps +$MAKE uninstall +test ! -f share/txinfo21/ps/main.ps +test ! -f share/txinfo21/ps/main2.ps +test ! -f share/txinfo21/ps/main3.ps + +(pdfetex --help 2>/dev/null >/dev/null) || + (pdftex --help 2>/dev/null >/dev/null) || exit 77 + +$MAKE install-pdf +test -f share/txinfo21/pdf/main.pdf +test -f share/txinfo21/pdf/main2.pdf +test -f share/txinfo21/pdf/main3.pdf +test -f share/txinfo21/pdf/hello +$MAKE uninstall +test ! -f share/txinfo21/pdf/main.pdf +test ! -f share/txinfo21/pdf/main2.pdf +test ! -f share/txinfo21/pdf/main3.pdf +test ! -f share/txinfo21/pdf/hello