-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·72 lines (46 loc) · 953 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# $Id: Makefile,v 1.2 2002/11/15 17:45:27 dsm Exp $
## don't use builtin implicit rules
MAKEFLAGS = -r
## define custom suffixes
.SUFFIXES:
.SUFFIXES: .tex
## LaTeX
PDFLATEX = pdflatex
BIBTEX = bibtex
## default target
DOC = \
spead_protocol.pdf\
spead_data_interface.pdf
.PHONY: all
all: $(DOC)
## dependencies
## miscellaneous targets
.PHONY: spell
spell:
@aspell -c -t --lang=en_UK *.tex
.PHONY: clean
clean:
@rm -f *~ *.log
.PHONY: squeaky
squeaky: clean
@rm -f *.aui *.aux *.bbl *.blg
@rm -f headers/*.aux
.PHONY: clobber
clobber: squeaky
@rm -f *.dvi *.bak *.toc *.lof *.lot *.out
.PHONY: distclean
distclean: clobber
@rm -f $(DOC)
.PHONY: realclean
realclean: distclean
@
## implicit rules
%.pdf: %.tex
$(PDFLATEX) $(subst .tex,,$<)
$(BIBTEX) $(subst .tex,,$<)
$(PDFLATEX) $(subst .tex,,$<)
$(PDFLATEX) $(subst .tex,,$<)
## don't try to make the makefile..
Makefile: ;
## -fin-
# vim:set syntax=make: