From: Stefano Lattarini Date: Sat, 2 Jun 2012 11:55:15 +0000 (+0200) Subject: texinfo: fix an imprecise comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165c66c01fc0db7654de590a46099ed915c3d8a6;p=thirdparty%2Fautomake.git texinfo: fix an imprecise comment In GNU make, '$^' used in a recipe contains every dependency for the target, even those not declared when the recipe is read; for example, on: all: foo1; @echo $^ all: foo2 "make all" would output "foo1 foo2". This is not Automake's fault, as some comments incorrectly stated. See also: * lib/am/texinfos.am: Fix those incorrect comments, and document the GNU make behaviour described above. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index afe08a1df..fc3981a9a 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -136,14 +136,16 @@ if %?LOCAL-TEXIS% include inst-vars.am -## FIXME: Extra indirection required because Automake proprocessing groups -## FIXME: dependencies for a given '*-am' together, so that we might end up -## FIXME: in our genereated Makefile with something like: -## FIXME: -## FIXME: install-pdf-am: $(PDFS) install-pdf-local -## FIXME: ... [RECIPE] ... -## FIXME: -## FIXME: which would cause a huge mess with our usages of '$^' in the recipes. +# In GNU make, '$^' used in a recipe contains every dependency for the +# target, even those not declared when the recipe is read; for example, +# on: +# all: foo1; @echo $^ +# all: foo2 +# "make all" would output "foo1 foo2". In our usage, a dependecy like +# "install-pdf-am: install-pdf-local" (that is automatically output by +# Automake-NG if the 'install-pdf-local' target is declared) would make +# '$^' unusable as a pure list of PDF target files in the recipe of +# 'install-pdf-am'. So we need the following indirections. install-dvi-am: am--install-dvi install-ps-am: am--install-ps