diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 12:35:55 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 12:36:14 -0500 |
commit | 6da6e7e4b9e1b2c97d5501b62f52ce07e1cec269 (patch) | |
tree | 9420b942d68d910a0356f2b70765e7afa6ef3b54 /Makefile | |
parent | 691e4f61c7008bda58229623b1ff36e03205dde9 (diff) |
moved posterboard to poster and Makefile uses generic recipes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 11 insertions, 18 deletions
@@ -3,9 +3,9 @@ ASSETS := imgs/made graph/depth_width.png graph/nearest_neighbor.png $(shell mkdir -p imgs graph outputs) .PHONY: all -all: outputs/posterboard.pdf outputs/report.pdf outputs/logbook.pdf +all: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf .PHONY: png -png: outputs/posterboard.png +png: outputs/poster.png .PHONY: clean clean: rm -rf imgs graph outputs data/tables.tex @@ -21,25 +21,18 @@ graph/depth_width.png: python/data.py python/depwid.py graph/nearest_neighbor.png: python/data.py python/neighbor.py cd graph && python3 ../python/neighbor.py -outputs/posterboard.png: outputs/posterboard.pdf - gs -sDEVICE=pngalpha -r288 -o outputs/posterboard.png outputs/posterboard.pdf +outputs/poster.png: outputs/poster.pdf + gs -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf -outputs/posterboard.pdf: $(wildcard poster/*.tex) outputs/qr-source.png outputs/qr.png $(ASSETS) - cd poster && pdftex document.tex >/dev/null - rm poster/document.log - mv poster/document.pdf outputs/posterboard.pdf +outputs/%.pdf: data/tables.tex $(wildcard %/*.tex) $(ASSETS) + cd $* && pdftex document.tex >/dev/null + rm $*/document.log + mv $*/document.pdf $@ -outputs/logbook.pdf: $(wildcard logbook/*.tex) $(ASSETS) generic.tex - cd logbook && pdftex document.tex >/dev/null - rm logbook/document.log - mv logbook/document.pdf outputs/logbook.pdf +outputs/poster.pdf: outputs/qr-source.png outputs/qr.png +outputs/logbook.pdf outputs/report.pdf: generic.tex -logbook/tables.tex: data/tables.tex - -outputs/report.pdf: $(wildcard report/*.tex) $(ASSETS) generic.tex - cd report && pdftex document.tex >/dev/null - rm report/document.log - mv report/document.pdf outputs/report.pdf +logbook/tables.tex poster/tables.tex: data/tables.tex outputs/qr.png: qrencode https://hrhr.dev/report.pdf -o outputs/qr.png |