blob: 09059003e73d4c63366f2e94ba27eaafd7c9239a (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
.POSIX:
.SUFFIXES:
.SUFFIXES: .tex .pdf
PDFTEX = pdftex
PY = python3
all: report.pdf poster.pdf logbook.pdf
clean:
rm -rf {report,poster,logbook}.{pdf,log} qr gen graph imgs
.tex.pdf:
$(PDFTEX) -jobname $* $<
qr:
mkdir qr
qrencode http://hrhr.dev/report.pdf -o qr/pdf.png
qrencode http://git.hrhr.dev/scifair/about -o qr/git.png
report.pdf: report.tex src/abstract.i src/intro.i src/methods.i \
src/analysis.i report/graphs.i report/pics.i src/biblio.i
poster.pdf: poster.tex qr fmt/multicol.h src/hypo.i src/abstr.i src/methods.i \
poster/voronoi.i src/results.i src/vars.i src/notes.i src/analysis.i \
poster/img1.i poster/img2.i poster/img3.i poster/img4.i poster/img5.i \
img/diagram.jpg img/2019-12-13-3.jpg img/c.jpg img/a.jpg img/code.png
logbook.pdf: logbook.tex src/biblio.i src/hypo.i src/vars.i \
src/methods.i src/bullets.i
report.pdf logbook.pdf: img/2019-10-30-1.jpg img/2019-11-21-1.jpg \
img/2019-11-21-2.jpg img/2019-11-21-3.jpg img/2019-12-02-1.jpg src/conc.i \
img/2019-12-13-1.jpg img/2019-12-13-3.rot.jpg fmt/doc.h report/tables.i
report.pdf poster.pdf logbook.pdf: fmt/com.h imgs graph/made \
gen/tables.i fmt/font.h src/mats.i img/2019-12-02-2.jpg \
img/2019-10-18-2.jpg img/2019-10-18-1.jpg img/2019-11-21-4.jpg \
img/2019-12-13-2.jpg
imgs: py/data.py py/img.py
mkdir -p imgs
cd imgs && $(PY) ../py/img.py
gen/dir:
mkdir -p gen
touch gen/dir
gen/tables.i: tables.orig.tex gen/deathtable gen/table gen/dir
sed -e '/%%DEATHTABLE%%/{r gen/deathtable' -e 'd}' \
-e '/%%MAINTABLE%%/{r gen/table' -e 'd}' tables.orig.tex >gen/tables.i
gen/deathtable: py/data.py py/deathtable.py gen/dir
$(PY) py/deathtable.py > gen/deathtable
gen/table: py/data.py py/table.py gen/dir
$(PY) py/table.py > gen/table
graph/dir:
mkdir -p graph
touch graph/dir
graph/made: graph/depth_width.png graph/nearest_neighbor.png graph/dir \
graph/lineplot.png graph/boxplot.png
touch graph/made
graph/depth_width.png: py/data.py py/depwid.py graph/dir
$(PY) py/depwid.py
mv depth_width.png graph/
graph/nearest_neighbor.png: py/data.py py/neighbor.py graph/dir
$(PY) py/neighbor.py
mv nearest_neighbor.png graph/
graph/lineplot.png: py/data2.py py/lineplot.py graph/dir
$(PY) py/boxplot.py
mv boxplot.png graph/
graph/lineplot.png: py/data2.py py/boxplot.py graph/dir
mv lineplot.png graph/
|