#	@(#)Makefile	4.1	(Berkeley)	10/19/82
#
# Hacked for SAS/C by Kari Sutela
DESTDIR=tex:c
DEFSFILE=tex:inputs/tgrindefs
TEXINPUTS=tex:inputs

SOURCES=tfontedpr.c vgrindefs.c regexp.c
CMDS=tgrind
OBJS=retest.o regexp.o tfontedpr.o vgrindefs.o

all:	$(CMDS)

tgrind: tfontedpr.o vgrindefs.o regexp.o
	slink lib:c.o tfontedpr.o vgrindefs.o regexp.o to tgrind lib lib:sc.lib

tfontedpr.o: tfontedpr.c
	sc define DEFSFILE="${DEFSFILE}" tfontedpr.c

install: all
	echo "You must have a ${DESTDIR} directory for this to work"
	copy clone tgrind ${DESTDIR}
	copy clone tgrindmac.tex tgrind.sty ${TEXINPUTS}
	copy clone tgrindefs ${DEFSFILE}

clean:
	delete ${CMDS} ${OBJS} retest
