On 2007-2-21 21:45 UTC, Perrog wrote:
> 
> A = `test .$module = .yes && echo .a || echo .b`
> 
> B = hello$(A)
> C = hello
> 
> all: $(A)
> 
> $(A): $(B)
>       @echo "Passed"
[...]
> It results in an error
> 
> SampleMakefile:13: target `echo' given more than once in the same rule.
> make: *** No rule to make target `hello`test', needed by ``test'.  Stop.

Does it do what you want if you define 'A' this way:
  A := $(shell test .$module = .yes && echo .a || echo .b)
instead?


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

Reply via email to