summaryrefslogtreecommitdiff
path: root/systems/knuth/local/web-sparc/Makefile
blob: 74811857a36d5bc028b80154a6c4e2444082164b (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
# Make executable files for this workstation, using the master TeX sources

PFLAGS= -O -I.. -temp=.
CFLAGS= -O -I..
PC= time pc

all: tangle weave

%.p: %.ch
	tangle ../../dist/web/$*.web  $*.ch
	mv ../../dist/web/$*.p .

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

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

tangle: tangle.o tangext.o tangext.h
	pc ${PFLAGS} -o tangle tangle.o tangext.o

tangext.o: tangext.c ../h00vars.h

weave: weave.o weavext.o tangext.h
	pc ${PFLAGS} -o weave weave.o weavext.o

weavext.o: weavext.c ../h00vars.h

install:        # doit make install PROG=tangle
	mv ${PROG} /usr/local/bin/${PROG}

clean:		# we save tangle.p for emergency rebooting
	rm -f weave.p *.o *~ ../../dist/web/*.pool