aboutsummaryrefslogtreecommitdiff
path: root/Makefile.orig
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.orig')
-rw-r--r--Makefile.orig18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.orig b/Makefile.orig
index 3f23a3c..68f8903 100644
--- a/Makefile.orig
+++ b/Makefile.orig
@@ -1,18 +1,18 @@
.POSIX:
.SUFFIXES: .tex .pdf
-DIRS = outputs graph
PDFS = poster/document.pdf report/document.pdf logbook/document.pdf
+QR = outputs/qr.png outputs/qr-source.png
PYTHON = python3
PDFTEX = pdftex
GHOSTSCRIPT = gs
-pdfs: outputs/poster.pdf outputs/report.pdf outputs/logbook.pdf
-$(DIRS):
- mkdir -p $@
+pdfs: $(PDFS)
+graph:
+ mkdir -p graph
png: outputs/poster.png
clean:
- rm -rf imgs gen/tables.tex $(DIRS) data/tables.tex $(PDFS)
+ rm -rf imgs graph gen/tables.tex data/tables.tex $(PDFS) $(QR)
imgs: python/data.py python/img.py
mkdir -p imgs
@@ -28,14 +28,14 @@ graph/nearest_neighbor.png: python/data.py python/neighbor.py graph
graph/made: graph/depth_width.png graph/nearest_neighbor.png graph
touch graph/made
-outputs/poster.png: outputs/poster.pdf outputs
+outputs/poster.png: poster/document.pdf
$(GHOSTSCRIPT) -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf
$(PDFS): gen/tables.tex imgs graph/made
.tex.pdf:
cd ${@D} && \
- $(PDFTEX) document.tex >/dev/null
+ $(PDFTEX) document.tex
rm ${@D}/document.log
poster/document.pdf: outputs/qr-source.png outputs/qr.png
@@ -43,8 +43,8 @@ logbook/document.pdf report/document.pdf: generic.tex
logbook/tables.tex poster/tables.tex: data/tables.tex
-outputs/qr.png: outputs
+outputs/qr.png:
qrencode https://hrhr.dev/report.pdf -o outputs/qr.png
-outputs/qr-source.png: outputs
+outputs/qr-source.png:
qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png