[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
no prerequisites and no target in command
From: |
sharan basappa |
Subject: |
no prerequisites and no target in command |
Date: |
Tue, 03 Oct 2006 15:41:59 +0000 |
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
- no prerequisites and no target in command,
sharan basappa <=