-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (32 loc) · 977 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
DOC=legion
SHELL=/bin/bash
# dependencies via include files
INCLUDED_TEX = installation.tex \
tasks.tex \
regions.tex \
partitioning.tex \
mapping.tex \
interop.tex \
control_replication.tex \
coherence.tex \
reference.tex
INCLUDED_FIGS =
all: $(DOC).pdf
$(DOC).pdf: $(DOC).tex bibliography.bib date_and_version.tex $(INCLUDED_TEX) $(INCLUDED_FIGS)
%.pdf: %.tex bibliography.bib
pdflatex -halt-on-error $*.tex
(if grep -q bibliography $*.tex; \
then \
bibtex $*; \
pdflatex -halt-on-error $*.tex; \
fi)
pdflatex -halt-on-error $*.tex
%.pdf: %.tex
pdflatex -halt-on-error $*.tex
pdflatex -halt-on-error $*.tex
date_and_version.tex: get_date_and_version.py
./get_date_and_version.py > date_and_version.tex
spelling :
for f in *.tex; do aspell -p ./aspell.en.pws --repl=./aspell.en.prepl -c $$f; done
clean:
rm -f *.bbl *.aux *.log *.blg *.lot *.lof *.toc *.dvi $(DOC).pdf *~