07-21-05 07:52 AM
Hi,
I've got a quick question.
Here's my makefile:
-----------------------------------
.PHONY: a b c Makefile foo
.INTERMEDIATE: a
foo: a b c
a:
echo "done a"
b:
echo "Done b"
c:
echo "Done c"
------------------------------------
The .PHONY is only there to shortcut a lot of implicit searches (keeps
-d short).
Now, I *expect* make to build the dependencies in the order stated, ie,
a, then b,
then c.
However, beacuse I've got the '.INTERMEDIATE: a' in there is does it in
the order:
b, then c, then a.
Why does the order change?
Cheers,
RiP
----
Richard Puchmayer
Richard.Puchmayer@nautronix.com.au
Perth, WA, Australia
[ Post a follow-up to this message ]
|