>>> "pds" == Paul D Smith <[EMAIL PROTECTED]> writes:

 pds> FYI, here's one way to handle it (obviously requires GNU make):
 pds> ifeq (,$(filter second-expansion,$(.FEATURES)))
 pds> # GNU make <3.81
 pds> PRE_D := $$
 pds> else
 pds> # GNU make >=3.81
 pds> PRE_D := $$$$
 pds> endif

 pds> # Now use PRE_D in prerequisites

 pds> all: foo$(PRE_D)bar ; @echo '$@: $<'

 pds> foo$$bar: ; @echo 'building $@'

The user lists filenames in variables, and Automake uses these 
variables in both prerequisite lists or commands.  For instance
see $(dist_my_DATA) in the last excerpt of
http://lists.gnu.org/archive/html/automake/2005-03/msg00067.html

So any solution that require a syntax that is different in
prerequisites than it is in the commands seems wrong to me.

Besides such a variable might as well defined from configure via
a substitution, so Automake cannot do any preprocessing on its
contents.
-- 
Alexandre Duret-Lutz



Reply via email to