%% Boris Kolpackov <[EMAIL PROTECTED]> writes: bk> "Paul D. Smith" <[EMAIL PROTECTED]> writes: me> prereq2: | prereq1
>> This says "prereq1 must complete before prereq2 will be run, BUT the >> decision on rebuilding prereq2 will completely ignore prereq1." bk> It also says that if prereq2 is to be updated then prereq1 will be bk> updated as well. Not quite; I know what you meant but to be perfectly accurate, it says that if prereq2 is to be updated then prereq1 will be _checked to see if it needs to be updated_. If it doesn't, it won't be updated. bk> This becomes important if we add target2 to the original makefile: bk> target1: prereq1 prereq2 bk> target2: prereq2 bk> prereq2: | prereq1 bk> Now if you say 'make target2', prereq1 will be updated even though bk> it's not needed. Yes, good point. -- ------------------------------------------------------------------------------- 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
