[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question about $$+
From: |
ali hagigat |
Subject: |
question about $$+ |
Date: |
Tue, 31 Aug 2010 11:28:42 +0430 |
Secondary Expansion of Explicit Rules
.SECONDEXPANSION:
foo: foo.1 bar.1 $$< $$^ $$+ # line #1
foo: foo.2 bar.2 $$< $$^ $$+ # line #2
foo: foo.3 bar.3 $$< $$^ $$+ # line #3
In the first prerequisite list, all three variables ($$<, $$^, and $$+)
expand to the empty
string. In the second, they will have values foo.1, foo.1 bar.1, and
foo.1 bar.1 respec-
tively. In the third they will have values foo.1, foo.1 bar.1 foo.2
bar.2, and foo.1
bar.1 foo.2 bar.2 respectively.
------------------------------------------------------------------------------------------------------------------------
In page 21 of the make manual, there is an example of secondary
expansion. The written result of the third $$+ seems wrong. It should
be:
foo.1 bar.1 foo.2 bar.2 foo.1 foo.1 bar.1 foo.1 bar.1
Please correct me if I am wrong. Thank you.
- question about $$+,
ali hagigat <=