help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make: *** No rule to make target `|', needed by `all'. Stop.


From: Greg Chicares
Subject: Re: make: *** No rule to make target `|', needed by `all'. Stop.
Date: Wed, 21 Feb 2007 22:29:47 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]