blob: 24db337ba62355d3946c4d5d2ec16e0f5717572d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
.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)
graph:
mkdir -p graph
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/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
graph/made: graph/depth_width.png graph/nearest_neighbor.png graph
touch graph/made
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
rm ${@D}/document.log
poster/document.pdf: outputs/qr-source.png outputs/qr.png
logbook/document.pdf report/document.pdf: generic.tex
logbook/tables.tex poster/tables.tex: data/tables.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
|