blob: 38b337e475be024dd2edacdbdedef35762fdbfad (
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
|
CC = cc
CFLAGS = -O
TARGET = nuweb
VERSION = 0.87b
OBJS = main.o pass1.o latex.o html.o output.o input.o scraps.o names.o \
arena.o global.o
SRCS = main.c pass1.c latex.c html.c output.c input.c scraps.c names.c \
arena.c global.c
.SUFFIXES: .dvi .tex .w .hw
.w.tex:
nuweb $*.w
.hw.tex:
nuweb $*.hw
.tex.dvi:
latex $*.tex
.w.dvi:
$(MAKE) $*.tex
$(MAKE) $*.dvi
all:
$(MAKE) $(TARGET).tex
$(MAKE) $(TARGET)
shar: $(TARGET)doc.tex
shar Makefile README literate.bib nuweb.w \
$(TARGET)doc.tex $(SRCS) global.h \
> $(TARGET)$(VERSION).sh
tar: $(TARGET)doc.tex
tar -cf $(TARGET)$(VERSION).tar Makefile README literate.bib nuweb.w \
$(TARGET)doc.tex $(SRCS) global.h
$(TARGET)doc.tex: $(TARGET).tex
sed 's/\\showcodetrue/\\showcodefalse/' $(TARGET).tex > $@
clean:
-rm -f *.tex *.log *.dvi *~ *.blg *.lint
veryclean:
-rm -f *.o *.c *.h *.tex *.log *.dvi *~ *.blg *.lint
view: $(TARGET).dvi
xdvi $(TARGET).dvi
print: $(TARGET).dvi
lpr -d $(TARGET).dvi
lint:
lint $(SRCS) > nuweb.lint
$(OBJS): global.h
$(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(OBJS)
|