From 88c1d359e29e19264b4fc5e91974f2bdeb5ab148 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 7 Feb 2020 19:30:03 -0500 Subject: made .tex file generation more simple --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 78b864c..d2c569a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ -ASSETS := imgs/made graph/depth_width.png graph/nearest_neighbor.png +ASSETS = imgs/made graph/depth_width.png graph/nearest_neighbor.png +DIRS = imgs graph outputs -$(shell mkdir -p imgs graph outputs) +$(shell mkdir -p $(DIRS)) .PHONY: all all: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf @@ -8,7 +9,7 @@ all: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf png: outputs/poster.png .PHONY: clean clean: - rm -rf imgs graph outputs data/tables.tex + rm -rf $(DIRS) data/tables.tex imgs/made: python/data.py python/img.py cd imgs && \ @@ -24,11 +25,14 @@ 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: data/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 $@ +gen/%.tex: gen/make%.sh gen/%.orig.tex + $< + outputs/poster.pdf: outputs/qr-source.png outputs/qr.png outputs/logbook.pdf outputs/report.pdf: generic.tex -- cgit