Makefile: Difference between revisions

36 bytes removed ,  15 years ago
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 regtesttodolist
</pre>
 
Line 95:
 
clean:
-@for$(RM) file in$(wildcard $(OBJFILES) $(DEPFILES) $(TSTFILES) $(REGFILES) pdclib.a pdclib.tgz; do if [ -f $$file ]; then rm $$file; fi; done)
 
dist:
448

edits