help-make
[Top][All Lists]
Advanced

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

Pattern rule dependencies order?


From: Majeed, Zartaj
Subject: Pattern rule dependencies order?
Date: Tue, 27 Mar 2001 18:50:38 -0800

When there is just % as a dependency in a pattern rule, it is processed
before other preceding dependencies in the rule. I am running make 3.79.1
and the behavior is identical on Solaris 8 and cygwin.

$ cat tester.mk
%/a: %/b %/c %
        @echo $@: $^

%/b:
        @echo target: $@
%/c:
        @echo target: $@
x:
        @echo target: $@
$ make x/a -f tester.mk
target: x
target: x/b
target: x/c
x/a: x/b x/c x

Why was dependency x processed before x/b and x/c?

Is % not allowed as a dependency? If it is, is this a bug or a feature?

Zartaj



reply via email to

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