help-make
[Top][All Lists]
Advanced

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

Re: What is wrong with this make file?


From: Paul Smith
Subject: Re: What is wrong with this make file?
Date: Tue, 05 Feb 2013 09:20:52 -0500

On Tue, 2013-02-05 at 02:09 +0000, Hiebert, Darren (IS) wrote:
> I have examined the output of "make -dpr" and see that the makefile
> tries to evaluate the literal text of "$PREREQ" instead of the value
> of the variable.

If you want that kind of expansion you must declare
the .SECONDEXPANSION: special target in your makefile (before the rule).

See the GNU make manual section on secondary expansion:

http://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html




reply via email to

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