diff options
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 |