help-make
[Top][All Lists]
Advanced

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

Re: make does not do default goal


From: Stephan Beal
Subject: Re: make does not do default goal
Date: Thu, 18 Nov 2010 19:38:59 +0100

On Thu, Nov 18, 2010 at 7:10 PM, Noel David Torres Taño <
address@hidden> wrote:

> -----
> exec = myexec
>
> include depends
>

this file almost certainly contains a dependencies target, whereas i suspect
that you want:


> all: $(exec)
>

that to be run first.

For Make the _first_ target in the makefile (including "include" files), is
the default target.

To work around this, simply add the following as the first non-include line:

all:

Makefile:3: depends: File not found
> Makefile:4: object_list: File not found
>

See the docs for "include", especially the part about "-include".


> Why does make don't go like if 'make all' issued?
>

Because that's not what you told it to do. The 'all' target is a
_convention_ used by most makefiles, but the word "all" has no special
meaning for make.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/


reply via email to

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