On Wed, Apr 27, 2011 at 5:15 PM, Paul Smith <[email protected]> wrote:

> Declare the makefile to be a prerequisite of all your targets.
>

Another tip i use (because i also belong to the school of thought that the
Makefiles are the base-most preprequisite):

myfile: Makefile $(MAKEFILE_LIST)

MAKEFILE := $(firstword $(MAKEFILE_LIST))
# ^^^^ normally either Makefile or GNUmakefile
$(MAKEFILE):

Then make $(MAKEFILE) a prereq
-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to