aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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