summaryrefslogtreecommitdiff
path: root/support/tgrind/makefile
blob: cff6b986974008498a503a16c170d3a0d4fa4bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#	@(#)Makefile	4.1	(Berkeley)	10/19/82
#
DESTDIR=/usr/local
DEFSFILE=/usr/local/lib/vgrindefs
TEXINPUTS=/usr/lib/tex/macros

CFLAGS=-O -g -DDEBUG
SOURCES=tfontedpr.c vgrindefs.c regexp.c retest.c
CMDS=tfontedpr retest
OBJS=retest.o regexp.o tfontedpr.o vgrindefs.o

all:	$(CMDS)

tfontedpr: tfontedpr.o vgrindefs.o regexp.o
	cc ${CFLAGS} -o tfontedpr tfontedpr.o vgrindefs.o regexp.o

tfontedpr.o: tfontedpr.c
	cc ${CFLAGS} -DDEFSFILE=\"${DEFSFILE}\" -c tfontedpr.c

retest: retest.o regexp.o
	cc ${CFLAGS} -o retest retest.o regexp.o

install: all
	install -s tfontedpr ${DESTDIR}/lib/tfontedpr
	install -c tgrind.sh ${DESTDIR}/bin/tgrind
	install -c tgrindmac.tex ${TEXINPUTS}/tgrindmac.tex
	install -c vgrindefs.src ${DEFSFILE}

clean:
	rm -f ${CMDS} ${OBJS}