blob: 938e231bff7f628a77645026ebc3d06151221744 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
unexport GCC_EXEC_PREFIX
CC = gcc
CFLAGS=$(CDEBUGFLAGS)
all: weevil
TANGO_OBJS = tango.o c_tango.o
TANGO_SRCS = tango.c c_tango.c
WEEVIL_OBJS = weevil.o c_weevil.o latex.o
WEEVIL_SRCS = weevil.c c_weevil.c latex.c
WEEVIL_TANGOS = weevil.tw c_weevil.tw latex.tw
WEEVIL_DOCS = weevinfo.tex weevil.tex c_weevil.tex latex.tex
weevil: $(WEEVIL_OBJS)
$(CC) $(CFLAGS) -o weevil $(WEEVIL_OBJS)
weevil.c: tango weevil.tw weevinfo.h
./tango -autoxref -lang c weevil.tw >weevil.c
c_weevil.c: tango c_weevil.tw weevinfo.h
./tango -autoxref -lang c c_weevil.tw >c_weevil.c
latex.c: tango latex.tw weevinfo.h
./tango -autoxref -lang c latex.tw >latex.c
weevinfo.h: tango weevinfo.tw
./tango -autoxref -lang c weevinfo.tw >weevinfo.h
weevdoc.dvi: $(WEEVIL_DOCS)
latex weevdoc
weevinfo.tex: weevil weevinfo.tw
./weevil -lang c weevinfo.tw >weevinfo.tex
weevil.tex: weevil weevil.tw weevilref.xfr
./weevil -lang c weevil.tw >weevil.tex
weevilref.xfr: c_weevil.xfr latex.xfr
cat c_weevil.xfr latex.xfr >weevilref.xfr
c_weevil.tex: weevil c_weevil.tw
./weevil -lang c c_weevil.tw >c_weevil.tex
latex.tex: weevil latex.tw
./weevil -lang c latex.tw >latex.tex
tango: $(TANGO_OBJS)
$(CC) $(CFLAGS) -o tango $(TANGO_OBJS)
tango.o: tango.c tango.h
c_tango.o: c_tango.c
co:
co tango.c weevil.tw tw.sty
doc: weevdoc.dvi userguid.dvi
userguid.dvi: userguid.tex
latex userguid.tex
latex userguid.tex
userguid.tex: userguid.tpc
gpic -t userguid.tpc >userguid.tex
clean:
rm -f $(TANGO_OBJS) $(WEEVIL_OBJS)
rm -f weevil tango
rm -f weevinfo.xfr weevinfo.h weevinfo.tex weevinfo.aux
rm -f weevil.xfr weevil.c weevil.tex weevil.aux weevilref.xfr
rm -f c_weevil.xfr c_weevil.c c_weevil.tex c_weevil.aux
rm -f latex.xfr latex.c latex.tex latex.aux
rm -f hello.xfr hello.idx hello.ilg hello.ind hello.tex hello.aux
rm -f hello.log hello.dvi hello hello.c
rm -f weevdoc.idx weevdoc.ilg weevdoc.ind weevdoc.aux weevdoc.log
rm -f weevdoc.dvi weevdoc.toc
rm -f userguid.idx userguid.ilg userguid.ind userguid.aux
rm -f userguid.log userguid.dvi userguid.tex
|