help-make
[Top][All Lists]
Advanced

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

Re: How to change certain rules such that they will not executed as long


From: Stephan Beal
Subject: Re: How to change certain rules such that they will not executed as long as the target is available?
Date: Sun, 23 May 2010 01:24:41 +0200

On Sat, May 22, 2010 at 11:37 PM, Peng Yu <address@hidden> wrote:
$(DIRS): %: %.tar.gz
       tar xzvf $<

One approach would be to touch a dummy file and change the deps (and cleanup rules) to use that.

Something like this (untested):

unpacked.dirName: dirName.tar.gz
    tar xzf $<
   address@hidden $@

You could use a 'define' block to create the rule for each tarball.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

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