help-make
[Top][All Lists]
Advanced

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

Re: help with $(filter ) in pattern rule prereq


From: Paul D. Smith
Subject: Re: help with $(filter ) in pattern rule prereq
Date: Thu, 21 Mar 2002 17:26:47 -0500

You cannot use functions on the results of a pattern match like that;
functions appearing in target or prerequisite lists are expanded as a
makefile is being read in, but patterns do not match until later, when
make is trying to find rules to run.

See the GNU make manual, section "How 'make' Reads a Makefile" for more
information on when expansion happens.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

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