[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expand % in wildcard function
From: |
Paul D. Smith |
Subject: |
Re: Expand % in wildcard function |
Date: |
Wed, 24 Mar 2004 13:32:07 -0500 |
%% address@hidden writes:
d> What should I do to expand the % in the wildcard function?
You can't.
d> xsl/alldocs_%.xsl: genalldocs.php $(wildcard $(DOCS)/%/*.xml)
Functions and variables in target and prerequisite lists are expanded
when the makefile is read in. That's when the $(wildcard ...) function
is expanded; the wildcard is seeing the literal "%" character here.
Pattern replacement doesn't happen until later when make is trying to
find an implicit rule to build the target.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist