help-make
[Top][All Lists]
Advanced

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

Re: Change Makefile


From: Paul Smith
Subject: Re: Change Makefile
Date: Wed, 27 Apr 2011 11:15:35 -0400

On Wed, 2011-04-27 at 20:39 +0530, Ajay Jain wrote:
> Hi,
> 
> I expect that if the Makefile is newer than the targets, all the
> targets (&dependencies) should just rebuild.

No, many people would find that completely unacceptable.

> i.e. if I do a touch Makefile & then a make, I should see EVERYTHING
> getting rebuilt. This does not happen. Is there a way to enforce it?

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

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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