help-make
[Top][All Lists]
Advanced

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

Re: Change Makefile


From: Stephan Beal
Subject: Re: Change Makefile
Date: Wed, 27 Apr 2011 17:20:40 +0200

On Wed, Apr 27, 2011 at 5:15 PM, Paul Smith <address@hidden> 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/


reply via email to

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