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 <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
