-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
58 lines (43 loc) · 980 Bytes
/
Makefile
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
### -*- mode: makefile-gmake -*-
# Note: If building on Mac OS X, and if you use MacPorts, the following ports
# should be installed:
#
# texlive-latex
# texlive-plain-extra
# texlive-latex-recommended
# texlive-latex-extra
# texlive-fonts-recommended
# texlive-fonts-extra
# texlive-generic-recommended
FIGURES = $(patsubst %.dot,%.pdf,$(wildcard *.dot))
TSPDF = pdflatex -jobname=$(TARGET) $(TARGET).tex | grep -av "^Overfull"
TARGET = ranges
export TOOLS=./tools
default: rebuild
clean:
rm -f *.aux $(TARGET).pdf *.idx *.ilg *.ind *.log *.lot *.lof *.tmp *.out
refresh:
$(TSPDF)
rebuild:
$(TSPDF)
bibtex $(TARGET)
$(TSPDF)
$(TSPDF)
full: $(FIGURES) grammar xrefs reindex
%.pdf: %.dot
dot -o $@ -Tpdf $<
grammar:
sh $(TOOLS)/makegram
xrefs:
sh $(TOOLS)/makexref
reindex:
$(TSPDF)
$(TSPDF)
$(TSPDF)
makeindex generalindex
makeindex libraryindex
makeindex grammarindex
makeindex impldefindex
$(TSPDF)
$(TSPDF)
### Makefile ends here