
BIN = Decode Encode Expand Head Replace RevChars RevLines Strings Tail Tee ToLower ToUpper Unexpand Uniq WC
TEMP = \#?.o \#?.lnk \#?.p #\#?.c

#
#   WARNING: for this directory #?.c are TEMP files!
#


########################################################
#
# How to create the 'std' Targets:
#
#   all   - build anything, that can be built
#   clean - erase all tempfiles
#   erase - erase all built files
#

all : $(BIN) clean

clean :
    -delete $(TEMP)

erase : clean
    -delete $(BIN)

AMIGADATE = `rx "say translate(date(E),'.','/')"`

########################################################
#
# How to create 'C' Source from a .data file
#
.data.c :
    -delete $*.c
    /Parser -i TPLTER -t gen.c.Tplt $*.data
    rename  gen.c $*.c

########################################################
#
# The following crap is for SMake has no
# grouping, so we have to buld a seperate
# dependancy for each file and its .c file
#
# For DMake we would just say:
#   m> $(BIN) : $(BIN:"*":"*.c")
#
# with XDME we do:
#  top find (BIN  =) 2 wright set yy $restofline
#  bottom downadd first insert ($yy) first
#  bottom while !r (set xx \$currentword insert (\$xx : ) while ca right delete insert (.c\^n        sc link \\\$*.c\^n\^n))


Decode : Decode.c
	sc link $*.c

Encode : Encode.c
	sc link $*.c

Expand : Expand.c
	sc link $*.c

Head : Head.c
	sc link $*.c

RevChars : RevChars.c
	sc link $*.c

RevLines : RevLines.c
	sc link $*.c

Replace : Replace.c
	sc link $*.c

Strings : Strings.c
	sc link $*.c

Tail : Tail.c
	sc link $*.c

Tee : Tee.c
	sc link $*.c

ToLower : ToLower.c
	sc link $*.c

ToUpper : ToUpper.c
	sc link $*.c

Unexpand : Unexpand.c
	sc link $*.c

Uniq : Uniq.c
	sc link $*.c

WC : WC.c
	sc link $*.c


