blob: f81b59b8330b757c4eb3e7a9c131e3643952e856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
graphs := $(patsubst %.json,%.png,$(wildcard assets/*.json))
default: main.pdf
main.pdf: $(graphs) $(shell find . -iname '*.tex') biblio.bib
latexmk -pdf
$(graphs): assets/%.png: assets/${subst png,json,%}.json
vl2png -s 2 ${subst png,json,$@} $@
.PHONY: clean watch
clean:
latexmk -c
rm -f assets/*.png
watch:
while true; do \
$(MAKE) $(WATCHMAKE); \
inotifywait -qre close_write .; \
done
|