Paul Smith wrote:
On Mon, 2010-11-15 at 23:59 +0100, Erik Rull wrote:
yeah, the last line was my solution, but I set it to:

copy_object: $(filter copy_object,$(MAKECMDGOALS))
         [...]

I'm pretty sure that's not what you used: that would be an infinite
recursion and make would kick it out.

Maybe you meant filter-out above, not filter?

If so you should be careful; what about something like "make clean"?


Yeah, you're right :-)

Well some special constraints might cause an "interesting" behavior, but there are no automated calls for this makefile - so the users/programmers will select the targets during development when typing the make command.
And if there is nothing to copy just nothing will happen...

Best regards,

Erik

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to