-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (34 loc) · 1.14 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
TeXInputs = TEXINPUTS=.:
define inksvg
inkscape \
--pdf-poppler \
--export-type=$() \
--export-text-to-path \
--export-area-drawing \
--export-filename=$(2) \
$(1)
endef
all: build/cm_overview.pdf build/cm_overview_accelerator.pdf
build/%.pdf: FORCE build/black_hole.pdf | build
$(TeXInputs) latexmk -r ./latexmkrc --jobname=$* cm_overview.tex
build/%_accelerator.pdf: FORCE build/black_hole.pdf | build
$(TeXInputs) latexmk -r ./latexmkrc --jobname=$*_accelerator cm_overview.tex
build/black_hole.pdf:
$(TeXInputs) latexmk -r ./latexmkrc black_hole.tex
preview: FORCE build/black_hole.pdf | build
$(TeXInputs) latexmk -r ./latexmkrc -pvc cm_overview.tex
preview_black_hole:
$(TeXInputs) latexmk -r ./latexmkrc -pvc black_hole.tex
build/cm_overview.svg: build/cm_overview.pdf
$(call inksvg,$<,$@)
convert_png: build/cm_overview.png build/cm_overview_accelerator.png
build/cm_overview.png: build/cm_overview.pdf
convert -density 600 $< $@
build/cm_overview_accelerator.png: build/cm_overview_accelerator.pdf
convert -density 600 $< $@
FORCE:
build:
mkdir -p build/
clean:
rm -rf build
.PHONY: FORCE all clean