On Tue, 2011-04-26 at 13:31 +0100, Jon Grant wrote: > I noticed that the "all:" target must be at the top of a makefile, > unless explicitly built by "make all". Is this expected? It seems > quite limiting..
There is nothing special about the "all" target. That's just a convention that many, but not all, makefile authors use. Make itself doesn't treat the "all" target, if it exists, in any special way. The GNU make manual says: > The order of rules is not significant, except for determining the > "default goal": the target for `make' to consider, if you do not > otherwise specify one. The default goal is the target of the first > rule in the first makefile. -- ------------------------------------------------------------------------------- Paul D. Smith <psm...@gnu.org> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make