On Thu, Nov 18, 2010 at 7:10 PM, Noel David Torres Taño <
[email protected]> 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/
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to