diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-27 17:10:05 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-27 17:10:05 +0000 |
commit | 98340e2ddf76a50b7341444a161362b1d01beb22 (patch) | |
tree | 13c9b6ee4f1b7e72432c60eeca3b989554d95297 /thesis/Makefile | |
parent | 89ebdefad647d79dac077e4b53a1b1349b52bc88 (diff) |
add watch to makefile
Diffstat (limited to 'thesis/Makefile')
-rw-r--r-- | thesis/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/thesis/Makefile b/thesis/Makefile index 3725d61..f81b59b 100644 --- a/thesis/Makefile +++ b/thesis/Makefile @@ -1,4 +1,4 @@ -graphs := assets/insert.png assets/contains.png +graphs := $(patsubst %.json,%.png,$(wildcard assets/*.json)) default: main.pdf @@ -6,9 +6,15 @@ main.pdf: $(graphs) $(shell find . -iname '*.tex') biblio.bib latexmk -pdf $(graphs): assets/%.png: assets/${subst png,json,%}.json - vl2png ${subst png,json,$@} $@ + vl2png -s 2 ${subst png,json,$@} $@ -.PHONY: clean +.PHONY: clean watch clean: latexmk -c rm -f assets/*.png + +watch: + while true; do \ + $(MAKE) $(WATCHMAKE); \ + inotifywait -qre close_write .; \ + done |