03-22-07 06:24 AM
* * Tong * [2007.03.22 01:12]:
> On Wed, 21 Mar 2007 19:46:40 -0500, Jean-Rene David wrote:
>
> thanks for the reply, hmm...
>
> Have you tried your make file?
I did what one should never do: change one small thing
*after* having tested it.
> $ make AppleJuice
> make: Nothing to be done for `AppleJuice'.
I looked into it a little (did you?) and I learned
something. Pattern rules and phonies don't play well. You
can't have a rule like this:
.PHONY: %.o
Also, it seems when you define:
.PHONY: AppleJuice
Then make looks for an *explicit* rule to make "AppleJuice".
It doesn't do the pattern rule.
Interestingly, I haven't seen this anywhere in the
documentation.
> Which shouldn't be, because AppleJuice is a phony target.
Quite the opposite. In light of the above, if you remove the
target from the phonies, it works.
If you want to get the effect of .PHONY, there's another
trick:
FORCE:
Make%Juice: %.in.source FORCE
make_juice $*.in.source $*.in.condition
And your original command line works.
info make --index='force'
--
JR
[ Post a follow-up to this message ]
|