help-make
[Top][All Lists]
Advanced

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

Process target only if prerequisite was processed?


From: Matt Perry
Subject: Process target only if prerequisite was processed?
Date: Thu, 11 Nov 2004 18:07:25 -0800 (PST)

Is there a way to tell make to only process a target if one or more of its 
prerequisites was processed?  Let's say I have a make file like this fake 
one here:

all: prereq1 prereq2
        do something
prereq1:
        ...
prereq2:
        ...

In this case an action needs to be taken if either one of the 
prerequisites were processed.  The "all" target doesn't generate a file.  
It just runs a program.

-- 
Matt Perry | matt at primefactor dot com





reply via email to

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