blob: e447a142885060d15c5aecbfcbd08d9b8508dc5a (
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
81
82
83
84
|
PYTHON3 := PYTHONPATH="." python3
BIBTEX := bibtex
MAKEINDEX := makeindex
PDFLATEX := pdflatex -halt-on-error -file-line-error -interaction=nonstopmode
IMAGES := \
build/planck.png \
build/diagram_xy.png \
build/diagram_uv.png \
build/diagram_uv_zoom.png \
build/diagram_uv76.png \
build/pasek_cct.png \
build/pasek_tecza.png \
build/cmf_xyz_v_lms.png \
build/tcs_ra.png \
build/d_wektory_wlasne.png \
build/d_spektra.png \
build/demo_ra.png \
build/demo_gai.png
CRL := \
crl/color.py \
crl/cri.py \
crl/data.py \
crl/plots.py \
crl/tables.py \
crl/tables2.py \
crl/__init__.py
TEX := \
build/00_strona_tytulowa.tex \
build/09_wstep.tex \
build/10_teoria.tex \
build/20_cri.tex \
build/30_literatura.tex \
build/35_pomiary.tex \
build/89_wnioski.tex \
build/90_wzory.tex \
FINAL_NAME := W11_236771_2019_praca inżynierska
build/main.pdf: build/main.tex build/main.ist \
main.bib ${IMAGES}
(cd build && ${PDFLATEX} "main.tex")
cp -f "main.bib" "build/main.bib"
(cd build && ${BIBTEX} "main")
cp "build/main.pdf" "build/${FINAL_NAME}.pdf"
build/main.tex: build main.tex build/lab1.tex build/rea2008.tex $(TEX)
@unlink build/main.tex 2>&1 > /dev/null || exit 0
@ln -s "../main.tex" build/main.tex
build/main.ist: build main.ist
@unlink build/main.ist 2>&1 > /dev/null || exit 0
@ln -s "../main.ist" build/main.ist
build:
mkdir -p build
build/%.tex: %.tex usuwanie_sierot.py
${PYTHON3} usuwanie_sierot.py < "$<" > "$@"
# FIXME...
crl/tables.py: crl_tools/make_tables.py
${PYTHON3} "crl_tools/make_tables.py" > "crl/tables.py"
build/%.png: src/%.py src/shared.py ${CRL}
@rm -f "$@"
${PYTHON3} "$<" "$@" && test -f "$@"
convert "$@" -trim "$@"
build/lab1.tex: src/lab.py src/shared.py ${CRL}
${PYTHON3} src/lab.py
build/rea2008.tex: src/rea2008.py src/shared.py ${CRL}
${PYTHON3} src/rea2008.py
tests: src/tests.py ${CRL}
${PYTHON3} src/tests.py
clean:
rm -r build/ crl/tables.py
.PHONY: build/main.pdf clean tests
|