Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/utils/winfo/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 | 834007765b95 |
children | 84d9d5765057 |
line wrap: on
line source
include ../../../rules.mak DEPENDS = ./makefile CMDS = witesta SUBS = winfo ALLOBJS = $(CMDS) $(SUBS) DSKWINFO = winfo.dsk DSKS = $(DSKWINFO) all: banner $(ALLOBJS) $(DEPENDS) banner: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* WInfo Utility *" @$(ECHO) "* *" @$(ECHO) "**************************************************" $(DSKWINFO): $(CMDS) $(RM) $@ $(OS9FORMAT) $@ $(MAKDIR) $@,CMDS $(CP) $(CMDS) $@,CMDS $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) $(CP) $(SUBS) $@,CMDS $(foreach file, $(SUBS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) dsk: all $(DSKS) dskcopy: dsk $(CP) $(DSKS) $(DSKDIR) clean: $(RM) $(ALLOBJS) $(DSKS) info: @echo "*** WInfo Utility ***" @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)