view 3rdparty/utils/gene/makefile @ 3072:32191c9fe2cd

makefiles: Always use ECHO macro define
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 22 Feb 2015 14:36:52 +0100
parents ff1866e1d1a4
children dd553bb32ebb
line wrap: on
line source

# OS-9 Commands/Utilities

include ../../../rules.mak

AFLAGS = -DLevel=1

DEPENDS		= ./makefile

CMDS		= bootlink vfy

ALLOBJS		= $(CMDS)

DSKGENEUTILS	= gene_utils.dsk

DSKS		= $(DSKGENEUTILS)

all:	banner $(ALLOBJS) $(DEPENDS)	

banner:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*             Gene Heskett's Utilities           *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"

$(DSKGENEUTILS): $(CMDS)
	$(RM) $@
	$(OS9FORMAT) -q $@ -n"Gene's utilities"
	$(MAKDIR) $@,CMDS
	$(OS9COPY) $(CMDS) $@,CMDS
	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))

dsk: all $(DSKS)

dskcopy: dsk
	$(CP) $(DSKS) $(DSKDIR)

dskclean:
	$(RM) $(DSKS)

clean: dskclean
	$(RM) $(ALLOBJS)

info:
	@$(ECHO) "*** Gene Heskett's Utilities ***"
	@$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)