|
From: | Erik Rull |
Subject: | Re: Ordering targets as arguments |
Date: | Mon, 15 Nov 2010 23:59:10 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 SeaMonkey/2.0.10 |
Paul Smith wrote:
On Sat, 2010-11-13 at 23:58 +0100, Erik Rull wrote: You haven't fully defined when you want (and don't want) these targets to be run, so I can't be sure, but it sounds like you might want to use order-only prerequisites: copy_object: | object See the GNU make manual. Another option is to use $(filter ...) with the MAKECMDGOALS variable, something like: copy_object: $(filter object,$(MAKECMDGOALS))
Hi Paul, yeah, the last line was my solution, but I set it to: copy_object: $(filter copy_object,$(MAKECMDGOALS)) [...]this causes copy_object only if it is given as a goal (no other target depends on copy_object, sp it is not called from somewhere else) and does not cause updating not given targets because of the dynamic prerequisites.
For my purpose the best solution, thanks for the hints! Best regards, Erik
[Prev in Thread] | Current Thread | [Next in Thread] |