help-make
[Top][All Lists]
Advanced

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

Re: Makefile doing strange things - help


From: Paul Smith
Subject: Re: Makefile doing strange things - help
Date: Thu, 28 Dec 2006 03:36:08 -0500

On Tue, 2006-12-26 at 00:38 -0800, Nirusha & Dushara Jayasinghe wrote:

> %.d: $(@:$(OBJ)/%.d=$(SRC)/%.c)

I don't know about the exact symptoms you're seeing but this rule is
wrong.  You cannot use $@ in a prerequisite list: that is an automatic
variable and automatic variables only have a value in the command
script, not in the prerequisites list.

See automatic variables in the GNU make manual.

-- 
-------------------------------------------------------------------------------
 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




reply via email to

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