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 47 48 49
|
CFLAGS +=
CWEAVE = cweavex +d
CTANGLE = ctanglex
all: treeprint treeprint.pdf wc wc.pdf wmerge wmerge.pdf
.SUFFIXES: .tex .dvi .w .pdf
.w.tex:
$(CWEAVE) $*
.tex.dvi:
tex $*
.tex.pdf:
pdftex $*
.w.c:
$(CTANGLE) $*
.w.dvi:
$(MAKE) $*.tex
$(MAKE) $*.dvi
.w.pdf:
$(MAKE) $*.tex
$(MAKE) $*.pdf
.w.o:
$(MAKE) $*.c
$(MAKE) $*.o
treeprint: treeprint.w
$(MAKE) treeprint.o
$(CC) $(CFLAGS) -o treeprint treeprint.o
wc: wc.w
$(MAKE) wc.o
$(CC) $(CFLAGS) -o wc wc.o
wmerge: wmerge.w common.o
$(MAKE) wmerge.o
$(CC) $(CFLAGS) -o wmerge wmerge.o common.o
.PHONY: clean
clean:
rm -f *.o *.c *.tex *.dvi *.pdf *.log *.toc
rm -f treeprint wc wmerge common.h
|