2022-02-09 01:19:57 +01:00
|
|
|
.PHONY: clean all
|
2022-02-08 12:02:51 +01:00
|
|
|
|
2022-02-09 01:19:57 +01:00
|
|
|
all: wrapper-main.pdf wrapper-nx.pdf
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r build pdf
|
|
|
|
|
|
|
|
dirs:
|
2022-02-08 12:02:51 +01:00
|
|
|
mkdir build
|
|
|
|
mkdir build/texdata
|
|
|
|
mkdir pdf
|
|
|
|
|
2022-02-09 01:19:57 +01:00
|
|
|
build/texdata/nx.tex: dirs
|
|
|
|
python python/htmlToTex.py
|
2022-02-08 12:02:51 +01:00
|
|
|
|
2022-02-09 01:19:57 +01:00
|
|
|
build/nx.tex: build/texdata/nx.tex
|
|
|
|
python python/createMainDoc.py
|
2022-02-08 12:02:51 +01:00
|
|
|
|
2022-02-09 01:19:57 +01:00
|
|
|
main.pdf: build/nx.tex
|
2022-02-08 12:02:51 +01:00
|
|
|
cd build; xelatex main.tex
|
|
|
|
|
2022-02-09 01:19:57 +01:00
|
|
|
nx.pdf: build/nx.tex
|
|
|
|
cd build; for n in 5 4 3 2 1; do \
|
|
|
|
xelatex n$$n.tex; \
|
2022-02-08 12:02:51 +01:00
|
|
|
done
|
2022-02-09 01:19:57 +01:00
|
|
|
|
|
|
|
wrapper-main.pdf: main.pdf
|
|
|
|
python python/createWrapperDoc.py main.pdf main-wrapper.tex
|
|
|
|
cd build; pdflatex main-wrapper.tex
|
|
|
|
mv build/main-wrapper.pdf pdf/main.pdf
|
|
|
|
|
|
|
|
wrapper-nx.pdf: nx.pdf
|
|
|
|
for n in 5 4 3 2 1; do \
|
|
|
|
python python/createWrapperDoc.py n$$n.pdf n$$n-wrapper.tex; \
|
|
|
|
done;
|
|
|
|
|
|
|
|
cd build; for n in 5 4 3 2 1; do \
|
|
|
|
pdflatex n$$n-wrapper.tex; \
|
|
|
|
mv n$$n-wrapper.pdf ../pdf/n$$n.pdf; \
|
|
|
|
done;
|