comparison level1/d64/makefile @ 2835:c1892376e7a7 lwtools-port

Makefiles: Do not let $(RM) silently fail The - in front of $(RM) was probably remains from a time when RM was not rm -f, and is not needed any longer. In general, if something fails we should notice and fix it, so using the preceding "-" in makefiles is not a good practice. The only occurences left are the SOFTLINKs in a few sys/makefile's.
author Tormod Volden <debian.tormod@gmail.com>
date Wed, 10 Jul 2013 19:45:32 +0200
parents dfb70510fa44
children 84d9d5765057
comparison
equal deleted inserted replaced
2834:ca65720ee373 2835:c1892376e7a7
116 # Clean all components 116 # Clean all components
117 clean: dskclean 117 clean: dskclean
118 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) 118 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
119 119
120 dskclean: 120 dskclean:
121 -$(RM) $(PACKAGENAME) $(DSKS) $(LDSKS) 121 $(RM) $(PACKAGENAME) $(DSKS) $(LDSKS)
122 122
123 dsk: all $(PACKAGENAME) 123 dsk: all $(PACKAGENAME)
124 124
125 dskcopy: dsk 125 dskcopy: dsk
126 $(CP) $(DSKS) $(DSKDIR) 126 $(CP) $(DSKS) $(DSKDIR)