From 5febe86defaa3da333241e25d61c271dd2ccf0f6 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 10 Feb 2020 12:05:54 -0500 Subject: makefile cleanup --- Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit