[Top][All Lists]

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

Re: makefile target "all:" not built automatically

From: Paul Smith
Subject: Re: makefile target "all:" not built automatically
Date: Tue, 26 Apr 2011 08:34:51 -0400

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 <address@hidden>          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

reply via email to

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