bug-make
[Top][All Lists]
Advanced

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

[PATCH] order-only prerequisite ends up in $<


From: Boris Kolpackov
Subject: [PATCH] order-only prerequisite ends up in $<
Date: Mon, 19 Apr 2004 16:16:09 -0500
User-agent: Mutt/1.5.4i

Good day,

The following makefile prints "baz foo baz" instead of "foo foo baz".

%r: | baz
        @echo $< $^ $|

bar: foo

foo:;@:

baz:;@:


In command.c in function set_file_variables $< is initialized with the 
first prerequisite. While in most cases this would be a normal prerequisite 
in case of an implicit rules it could be an order-only one. Patch is
attached.


hth,
-boris
   

Attachment: first-dependency.patch
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

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