help-make
[Top][All Lists]
Advanced

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

Re: OR rules


From: Paul D. Smith
Subject: Re: OR rules
Date: Wed, 5 Nov 2003 18:06:58 -0500

%% Daniel Mahler <address@hidden> writes:

  dm> I would like to be able to write parallel rules with disjunctive
  dm> semantics eg

  dm> %.tar : %.tar.Z
  dm>       unzip $<

  dm> %.tar : %.tar.gz
  dm>       gunzip $<

  dm> Which would only run gunzip if there was a .gz file 
  dm> and only unzip if there was a .Z file and either one
  dm> if both were present.

What you wrote here will do what you want.  Is there a reason you think
this doesn't work?

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