On 2010.01.25 17:41, Peng Yu wrote:
target: a b c d
some_command_whose_argument_order_mattters a b c d
Suppose I have the above rule, I want to reduce it to the following.
But I'm wondering if $^ preserve the order of the prerequisites.
Could somebody let me know?
target: a b c d
some_command_whose_argument_order_mattters $^
From info make "10.5.3 Automatic Variables":
$^
The names of all the prerequisites, with spaces between them. For
prerequisites which are archive members, only the member named is used
(see Archives). A target has only one prerequisite on each other file it
depends on, no matter how many times each file is listed as a
prerequisite. So if you list a prerequisite more than once for a target,
the value of $^ contains just one copy of the name. This list does not
contain any of the order-only prerequisites; for those see the `$|'
variable, below.
$|
The names of all the order-only prerequisites, with spaces between
them.
--
С уважением, Александр Гавенко.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make