aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-02-10 12:05:54 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-02-10 12:05:54 -0500
commit5febe86defaa3da333241e25d61c271dd2ccf0f6 (patch)
tree14e28fb42817ccdf87d035f40252f53897ea1657 /Makefile
parent9d1824d2622cc1488caeee1b44eec8c38f1f5fd3 (diff)
makefile cleanup
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