aboutsummaryrefslogtreecommitdiff
path: root/Makefile.orig
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-28 18:43:02 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-28 18:43:02 -0400
commit84aed252dd24fc62cfec4b877edd5c8e90e43035 (patch)
tree11bfdb7a69b0ae7f8a738ff09db9650685090dd9 /Makefile.orig
parentd1fcf6fb400ef1dab7d988354b4ca48614e93420 (diff)
parentd6ed0246fef2253ad8f4c4e98fcf27c016bdbd37 (diff)
Merge branch 'configure'
Diffstat (limited to 'Makefile.orig')
-rw-r--r--Makefile.orig47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile.orig b/Makefile.orig
new file mode 100644
index 0000000..b0a3d3e
--- /dev/null
+++ b/Makefile.orig
@@ -0,0 +1,47 @@
+.POSIX:
+.SUFFIXES: .tex .pdf
+
+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: $(PDFS)
+png: outputs/poster.png
+clean:
+ rm -rf imgs graph gen/tables.tex data/tables.tex $(PDFS) $(QR)
+
+imgs: python/data.py python/img.py
+ mkdir -p imgs
+ cd imgs && \
+ $(PYTHON) ../python/img.py
+
+graph:
+ mkdir -p graph
+
+GRAPH = graph/depth_width.png graph/nearest_neighbor.png
+graph/depth_width.png: python/data.py python/depwid.py graph
+ cd graph && $(PYTHON) ../python/depwid.py
+
+graph/nearest_neighbor.png: python/data.py python/neighbor.py graph
+ cd graph && $(PYTHON) ../python/neighbor.py
+
+outputs/poster.png: poster/document.pdf
+ $(GHOSTSCRIPT) -sDEVICE=pngalpha -r288 -o outputs/poster.png outputs/poster.pdf
+
+$(PDFS): gen/tables.tex imgs $(GRAPH)
+
+.tex.pdf:
+ cd ${@D} && \
+ $(PDFTEX) document.tex
+ rm ${@D}/document.log
+
+poster/document.pdf: outputs/qr-source.png outputs/qr.png
+logbook/document.pdf report/document.pdf: generic.tex
+
+outputs/qr.png:
+ qrencode https://hrhr.dev/report.pdf -o outputs/qr.png
+
+outputs/qr-source.png:
+ qrencode https://git.hrhr.dev/scifair -o outputs/qr-source.png