[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expand % in wildcard function

From: Boris Kolpackov
Subject: Re: Expand % in wildcard function
Date: Thu, 25 Mar 2004 17:19:12 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

"Paul D. Smith" <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.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]