%% "Leeuwesteijn,Joost" <[EMAIL PROTECTED]> writes: l> See the zut.mk example below. When I run 'make -f zut.mk' I l> expected the banner target to be executed twice, but it l> doesn't. Just once, for module1. I thought .PHONY targets would l> always be executed, but 'always' seems to be limited to once; which l> is probably the 'make' thing to do.
Correct. Any given target, .PHONY or not, will be executed at most once per invocation of make: once make has run a command to build a target that target is considered "up-to-date" for that invocation of make, regardless of what the command script actually did, if anything. l> Is it possible to force the execution of the banner target? No; the only way to do it is to re-invoke make recursively to build the target. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
