summaryrefslogtreecommitdiff
path: root/systems/knuth/local/etc/Makefile
blob: 7917e58eca543702bbb66258b0452c3b6e437066 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Make executable files for this workstation, using the master TeX sources

PFLAGS= -g -I..
CFLAGS= -g -I..
PC= gpc

all: vftovp vptovf

%.p: %.ch
	tangle ../../dist/etc/$*.web  $*.ch
# the next line formerly necessary; but not with Linux's (Web2C) tangle
#	mv ../../dist/etc/$*.p . 

%.ch: ../../dist/etc/%.web
	touch $*.ch

%.o: %.p
	${PC} ${PFLAGS} -c $*.p

dvityext.c: ../texware/dvityext.c
	cp ../texware/dvityext.c .

texwarext.h: ../texware/texwarext.h
	cp ../texware/texwarext.h .

dvityext.h: ../texware/dvityext.h
	cp ../texware/dvityext.h .

vftovp: vftovp.o dvityext.o
	${PC} ${PFLAGS} -o vftovp vftovp.o dvityext.o

vptovf: vptovf.o
	${PC} ${PFLAGS} -o vptovf vptovf.o dvityext.o

dvityext.o: dvityext.c ../GPCtypes.h ../texpaths.h

vptovf.o: texwarext.h

vftovp.o: dvityext.h

install:        # doit make install "PROG=vftovp"
	mv $(PROG) /usr/local/bin/$(PROG)

clean:
#	rm -f *.p *.o *~ dvityext.c ../../dist/etc/*.pool
	rm -f *.p *.o *~ dvityext.c *.pool core texwarext.h