[Top][All Lists]

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

Re: Make phony target problem.

From: Paul D. Smith
Subject: Re: Make phony target problem.
Date: Fri, 7 Jan 2005 14:21:18 -0500

%% Erwin Waterlander <address@hidden> writes:

  ew> I tried a very simple example from the GNU make manual section 4.6
  ew> about phony targets. It does not seem to work as described. The
  ew> targets are not remade when I run make a second time. See
  ew> attachement.

You've only declared the target "all" to be phony.  So only "all" itself
will be remade every time.

Targets that all depends on, like prog1 and prog2, are not declared
phony so they use make's normal build avoidance rules and are not built
unless they're deemed out of date.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]