diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 19:30:03 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 19:30:03 -0500 |
commit | 88c1d359e29e19264b4fc5e91974f2bdeb5ab148 (patch) | |
tree | 23ae4e75ba99aa243ca07fe81eda5dcb167c3215 /Makefile | |
parent | 6da6e7e4b9e1b2c97d5501b62f52ce07e1cec269 (diff) |
made .tex file generation more simple
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |