"Paul D. Smith" <[EMAIL PROTECTED]> 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.

There is a patch that implements double expansion in implicit rules, in
case somebody is interested.

http://kolpackov.net/projects/make/bk/

hth,
-boris



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to