help-make
[Top][All Lists]
Advanced

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

include and reparsing Makefile


From: Warlich, Christof
Subject: include and reparsing Makefile
Date: Wed, 17 Apr 2013 06:18:45 +0000

Hi,

I'm seeing a rather unexpected behaviour when including a submakefile. Please 
consider the following Makefile:

nothing:
reparse.mk: mayOrMayNotExist ; @echo would remake $@
-include reparse.mk

When I call make while the file mayOrMayNotExist does exist, I get:

$ touch mayOrMayNotExist
$ make
would remake reparse.mk
make: Nothing to be done for `nothing'

But when the file mayOrMayNotExist  does _not_ exist, I only get

$ rm -f mayOrMayNotExist
$ make
make: Nothing to be done for `nothing'.

Could anyone help me in understanding why Make behaves differently here?

Cheers,

Chris


reply via email to

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