Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/basic09/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 | 53c42701f680 |
children | 84d9d5765057 |
line wrap: on
line source
include $(NITROS9DIR)/rules.mak DISK = basic09v010100.dsk # NitrOS-9 H6309 = $(AFLAGS) -DH6309=1 # Non-NitrOS-9 M6809 = $(AFLAGS) DEPENDS = ./makefile TXTFILES = ReadMe install6809 install6309 OBJS = gfx gfx2 inkey syscall OBJS6809 = basic09_6809 runb_6809 OBJS6309 = basic09_6309 runb_6309 ALLOBJS = $(OBJS) $(OBJS6809) $(OBJS6309) all: banner $(ALLOBJS) $(DEPENDS) banner: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* Basic09 *" @$(ECHO) "* *" @$(ECHO) "**************************************************" basic09_6309: basic09.asm $(AS) $(ASOUT)$@ $< $(H6309) basic09_6809: basic09.asm $(AS) $(ASOUT)$@ $< $(M6809) runb_6309: runb.asm $(AS) $(ASOUT)$@ $< $(H6309) runb_6809: runb.asm $(AS) $(ASOUT)$@ $< $(M6809) runbt_6809: basic09.asm $(AS) $(ASOUT)$@ $< $(M6809) -aRUNTIME=1 clean: dskclean $(RM) $(ALLOBJS) dsk: all $(RM) $(DISK) $(OS9FORMAT_SS35) $(DISK) -n"Basic09" $(MAKDIR) $(DISK),CMDS $(CP) $(ALLOBJS) $(DISK),CMDS $(foreach file, $(ALLOBJS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(file);) $(CPL) $(TXTFILES) $(DISK),. $(foreach file, $(TXTFILES), $(OS9ATTR_TEXT) $(DISK),$(file);) dskcopy: dsk $(CP) $(DISK) $(DSKDIR) dskclean: $(RM) $(DISK) info: @$(ECHO) "*** Basic09 ***" @$(ECHO) $(DISK)