Makefile: Difference between revisions
no edit summary
[unchecked revision] | [unchecked revision] |
m (→File Lists: As in "man make", chapter "Description".) |
No edit summary |
||
Line 70:
The next one can take you by surprise. When you write a rule for ''make clean'', and there happens to be a file named ''clean'' in your working directory, you might be surprised to find that ''make'' does nothing, because the "target" of the rule ''clean'' already exists. To avoid this, declare such rules as ''phony'', i.e. disable the checking for a file of that name:
<pre>
.PHONY: all clean dist test testdrivers
</pre>
Line 95:
clean:
-@
dist:
|