[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #27047] Difficulties defining prerequisites for pattern targets.
From: |
Robert L Walton |
Subject: |
[bug #27047] Difficulties defining prerequisites for pattern targets. |
Date: |
Fri, 17 Jul 2009 20:22:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009040909 CentOS/3.0.7-1.el5.centos Firefox/3.0.7 |
Follow-up Comment #2, bug #27047 (project make):
Fails in the sense that applying `make' to
++
all: test1001.out
foo:
@echo making foo
test1%.out: TEST=foo
test%.out: ${TEST}
@echo making test$*.out with TEST=${TEST}
--
produces
+
making test1001.out with TEST=foo
--
when I would like it to produce
+
making foo
making test1001.out with TEST=foo
--
The pattern specific variable is not substituted in the first
${TEST}.
Pattern specific variables get substituted in the commands but NOT the
prerequisites, apparently.
The use of pattern targets without commands to cancel previous pattern target
rules is unfortunate, since it conflicts with the common non-pattern use of
adding prerequisites. Too bad. Worse, the cancel usage is obscure and the
failure of the prerequisite use is confusing to debug.
(file #18435)
_______________________________________________________
Additional Item Attachment:
File name: Makefile Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27047>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/