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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make