clean:
<TAB> rm -f *.o lexer.c

I am trying to understand how make interprets rules with exceptions.

In the above rule

 1) - target has no prerequisites.

 2) - the command does not generate target

According to make if no prerequisites are specified then make must interpret this as target always being upto date and do nothing at all

According to make if command does not generate the target then make must always execute the command. In the above cases, we have both the conditions in a single rule, and make executes the command. DOes this mean that rule 2 has more precedence over 1 ?

_________________________________________________________________
Live the life in style with MSN Lifestyle. Check out! http://content.msn.co.in/Lifestyle/Default



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

Reply via email to