help-make
[Top][All Lists]
Advanced

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

Re: Why does `make' think Nothing to be done for `all' for my script?


From: Paul Smith
Subject: Re: Why does `make' think Nothing to be done for `all' for my script?
Date: Fri, 21 Dec 2007 08:43:28 -0500

On Fri, 2007-12-21 at 14:28 +0800, PRC wrote:
> T
> #TARGET = AAXX.a
> 
> .PHONY : all clean
> 
> all: $(TARGET)

> And I run `make'
> $make
> make: Nothing to be done for `all'.
> 
> My expected target AAXX.a is not produced. I think `make' resolve the
> variable TARGET as null when it checks the target `all', so that it
> thinks nothing to be done for `all'.
> 
> Must I place the variable TARGET assignment before the target `all' in
> the Makefile?

Yes.  But you also must uncomment it.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]