-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (47 loc) · 1.27 KB
/
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
MAIN := main
IMGS := \
build/img/herb_uj.pdf \
img/bench-dedicated-model-compress.tex \
img/bench-known-sequencing-compress.tex \
img/bench-small-data-compress.tex \
img/bench-best-performance-compress.tex \
img/bench-dedicated-model-decompress.tex \
img/bench-known-sequencing-decompress.tex \
img/bench-small-data-decompress.tex \
img/bench-best-performance-decompress.tex \
img/binning.tex \
img/idn_file.tex
CHAPTERS := \
conclusion.tex \
evaluation.tex \
implementation.tex \
introduction.tex \
problem.tex \
apx-benchmark-env.tex \
apx-idn-format.tex \
apx-model-format.tex \
apx-models.tex \
apx-test-data.tex
REST := bibliography.bib abstract.tex titlepage.tex
BIBLIOGRAPHY := build/bibliography.bbl
CC := pdflatex -shell-escape
INKSCAPE := inkscape
LINT := lacheck
BIBTEX := bibtex
all: stage2
stage2: $(MAIN).tex $(BIBLIOGRAPHY) $(REST) $(IMGS) $(CHAPTERS)
$(CC) -output-directory build $<
$(CC) -output-directory build $<
stage1: $(MAIN).tex $(REST) $(IMGS) $(CHAPTERS)
mkdir -p build/build
$(CC) -output-directory build $<
build/img/%.pdf: img/%.svg
mkdir -p build/img
$(INKSCAPE) -o $@ $<
$(BIBLIOGRAPHY): stage1
$(BIBTEX) build/$(MAIN).aux
lint:
$(LINT) $(MAIN).tex
clean:
rm -rf build/* *.aux *.log *.bbl *.out *.pdf *.blg *.toc
.PHONY: clean lint