aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-02-07 12:35:55 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-02-07 12:36:14 -0500
commit6da6e7e4b9e1b2c97d5501b62f52ce07e1cec269 (patch)
tree9420b942d68d910a0356f2b70765e7afa6ef3b54
parent691e4f61c7008bda58229623b1ff36e03205dde9 (diff)
moved posterboard to poster and Makefile uses generic recipes
-rw-r--r--Makefile29
1 files changed, 11 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index e3d1a82..78b864c 100644
--- a/Makefile
+++ b/Makefile
@@ -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