blob: db2016b68bd41a09b21f565c1865a0e7598fd90e (
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
|
IMGS := imgs/2019-10-16.png imgs/2019-10-30.png imgs/2019-12-19.png imgs/2019-12-20.png imgs/2019-12-3.png imgs/2019-12-5.png
GRAPHS := graph/depth_width.png graph/nearest_neighbor.png
ASSETS := $(IMGS) $(GRAPHS)
$(shell mkdir -p imgs graph outputs)
.PHONY: all
all: outputs/posterboard.pdf outputs/report.pdf outputs/logbook.pdf
.PHONY: png
png: outputs/posterboard.png
.PHONY: clean
clean:
rm -rf imgs graph outputs
$(IMGS): data.py
cd imgs && \
python3 ../data.py img
$(GRAPHS): data.py
cd graph && \
python3 ../data.py depwid && \
python3 ../data.py nei
outputs/posterboard.png: outputs/posterboard.pdf
gs -sDEVICE=pngalpha -r288 -o outputs/posterboard.png outputs/posterboard.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/logbook.pdf: logbook.tex document/research.tex document/biblio.tex poster/hypothesis.tex data/mats.tex poster/vars.tex poster/methods.tex document/tables.tex poster/conclusion.tex data/bulletnotes.tex $(ASSETS)
pdftex logbook.tex >/dev/null
rm logbook.log
mv logbook.pdf outputs
outputs/report.pdf: $(wildcard document/*.tex) $(ASSETS)
cd document && pdftex report.tex >/dev/null
rm document/report.log
mv document/report.pdf outputs
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
|