help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

non-phony rules without commands


From: Boris Kolpackov
Subject: non-phony rules without commands
Date: Tue, 10 Feb 2004 17:48:21 -0600
User-agent: Mutt/1.5.4i

Good day,

Consider the following makefile:

foo : bar.o

bar.o : bar.cpp
        g++ -c -o $@ $<

Here I don't have a command for 'foo'. 'foo' is not declared
phony. However make 'imagines' that this target is somehow
gets updated. Obviously there is no way 'foo' can be created
(side-effects aside for a moment) so effectively 'foo' becomes 
an implicit phony target. My question is when this logic can be 
useful?


thanks,
-boris

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]