On Wed, 2012-04-18 at 20:52 -0400, Martin d'Anjou wrote:
> .SECONDEXPANSION:
> gen_default_Test_f := \
>     file1 \
>     file2
> gen_default_Test_bar := bar_foo
> 
> gen_%.f: $${gen_$$*_f}
>     @echo "f $@"
> 
> gen_%: \
>     $$(if $$(gen_$$*_f),gen_%.f) \
>     $$(if $$(gen_$$*_bar),$$(gen_$$*_bar).ext)
>     @echo "$@"
> 
> $ touch file1
> $ touch file2
> $ make gen_default_Test

I've tried the above and in all versions (3.81, 3.82, latest CVS) I get
the same result:

  make: *** No rule to make target 'gen_default_Test'.  Stop.

Are you sure there's not more needed here?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to