FYI, here's one way to handle it (obviously requires GNU make): ifeq (,$(filter second-expansion,$(.FEATURES))) # GNU make <3.81 PRE_D := $$ else # GNU make >=3.81 PRE_D := $$$$ endif
# Now use PRE_D in prerequisites all: foo$(PRE_D)bar ; @echo '$@: $<' foo$$bar: ; @echo 'building $@' -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist