aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d2c569a..3a472ce 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,14 @@ DIRS = imgs graph outputs
$(shell mkdir -p $(DIRS))
-.PHONY: all
+.PHONY: all png clean
all: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf
-.PHONY: png
png: outputs/poster.png
-.PHONY: clean
clean:
rm -rf $(DIRS) data/tables.tex
+.SECONDEXPANSION:
+
imgs/made: python/data.py python/img.py
cd imgs && \
python3 ../python/img.py
@@ -25,7 +25,7 @@ graph/nearest_neighbor.png: python/data.py python/neighbor.py
outputs/poster.png: outputs/poster.pdf
gs -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf
-outputs/%.pdf: gen/tables.tex $(wildcard %/*.tex) $(ASSETS)
+outputs/%.pdf: gen/tables.tex $$(wildcard %/*.tex) $(ASSETS)
cd $* && pdftex document.tex >/dev/null
rm $*/document.log
mv $*/document.pdf $@
@@ -43,6 +43,3 @@ outputs/qr.png:
outputs/qr-source.png:
qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png
-
-data/tables.tex: data/maketables.sh data/tables.orig.tex
- data/maketables.sh