Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/utils/boisy/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 | dd5499bc4bdd |
children | 84d9d5765057 |
line wrap: on
line source
# OS-9 Commands/Utilities # include ../../../rules.mak DEPENDS = ./makefile CMDS = bawk del grep mode send timer bigbro font makdir \ more tee joypoll ALLOBJS = $(CMDS) DSKBOISYUTILS = boisy_utils.dsk DSKS = $(DSKBOISYUTILS) all: banner $(ALLOBJS) $(DEPENDS) banner: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* Boisy Pitre's Utilities *" @$(ECHO) "* *" @$(ECHO) "**************************************************" $(DSKBOISYUTILS): $(CMDS) $(RM) $@ $(OS9FORMAT) $@ $(MAKDIR) $@,CMDS $(CP) $(CMDS) $@,CMDS $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) dsk: all $(DSKS) dskcopy: dsk $(CP) $(DSKS) $(DSKDIR) clean: $(RM) $(ALLOBJS) $(DSKS) info: @echo "*** Boisy Pitre's Utilities ***" @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)