[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #21198] Wrong order of prerequisites with 3.81/CVS
From: |
Martin Dorey |
Subject: |
[bug #21198] Wrong order of prerequisites with 3.81/CVS |
Date: |
Mon, 01 Oct 2007 21:09:17 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 |
Follow-up Comment #2, bug #21198 (project make):
Robin Williams points out there is a different issue here which can be seen
by adding $< to the echo command, so the test reads:
all : A B C
all : ; @echo $@ -- $^, $<
all : D E F
A B C D E F : ; @echo $@
With that change, make-3.80 says:
A
B
C
D
E
F
all -- A B C D E F, A
But 3.81 says:
A
B
C
D
E
F
all -- A B C D E F, D
The manual says:
"$<
The name of the first prerequisite."
Here the first prerequisite of "all" would appear to be "A". Interestingly,
if the example is reordered such that the prerequisites are all given before
the command for building "all":
all : A B C
all : D E F
all : ; @echo $@ -- $^, $<
A B C D E F : ; @echo $@
Then 3.81 also says $< is "A".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?21198>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/