help-make
[Top][All Lists]
Advanced

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

Re: conditional prerequisite


From: Paul D. Smith
Subject: Re: conditional prerequisite
Date: Sat, 30 Aug 2003 01:22:25 -0400

%% Tristan Van Berkom <address@hidden> writes:

  tvb> You might want to start by :

  tvb> %.o:: %.c
  tvb>  gcc...

  tvb> %.o:: %.c %.other
  tvb>  gcc...

This won't work.  GNU make will always choose the first rule, because it
always will succeed, so it will never think about a .other file.

-- 
-------------------------------------------------------------------------------
 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]