2014-10-09 15:20:20 +02:00
|
|
|
export TEXINPUTS := $(shell pwd)//:${TEXINPUTS}
|
|
|
|
|
2014-10-09 18:15:27 +02:00
|
|
|
source/avremu.pdf:
|
2014-10-09 17:30:00 +02:00
|
|
|
cd source; latexmk -pdf -shell-escape avremu
|
|
|
|
|
2014-10-09 15:20:20 +02:00
|
|
|
test: test-simple
|
|
|
|
cd source/test-suite; ./test-suite
|
|
|
|
|
|
|
|
test-simple: source/simple-testsuite.tex
|
|
|
|
pdflatex -halt-on-error $<
|
|
|
|
|
|
|
|
test-%: source/test-suite/%.c
|
|
|
|
cd source/test-suite; ./test-suite single $(shell basename $<)
|
|
|
|
|
2014-10-13 13:47:14 +02:00
|
|
|
avremu.zip: source/avremu.pdf
|
|
|
|
rm -rf avremu avremu.tds.zip avremu.zip
|
2014-10-09 18:15:27 +02:00
|
|
|
mkdir avremu
|
|
|
|
# TeX Directory
|
|
|
|
mkdir -p avremu/tex/latex/avremu
|
|
|
|
cp tex/latex/avremu/*.tex avremu/tex/latex/avremu
|
|
|
|
cp tex/latex/avremu/*.sty avremu/tex/latex/avremu
|
|
|
|
# Source directory
|
|
|
|
mkdir -p avremu/source/latex/avremu
|
|
|
|
cp -r imgs avremu/source/latex/avremu
|
|
|
|
mkdir -p avremu/source/latex/avremu/test-suite
|
|
|
|
cp source/test-suite/*.c avremu/source/latex/avremu/test-suite
|
2014-10-09 18:29:10 +02:00
|
|
|
cp source/test-suite/test-suite avremu/source/latex/avremu/test-suite
|
|
|
|
cp source/test-suite/FOOTER avremu/source/latex/avremu/test-suite
|
|
|
|
cp source/test-suite/HEADER avremu/source/latex/avremu/test-suite
|
2014-10-09 18:15:27 +02:00
|
|
|
cp source/simple-testsuite.tex avremu/source/latex/avremu/
|
2014-10-14 10:58:56 +02:00
|
|
|
cp source/avremu.tex avremu/source/latex/avremu/
|
|
|
|
cp -L source/mandelbrot.png avremu/source/latex/avremu/
|
2014-10-09 18:15:27 +02:00
|
|
|
# Documenation directory
|
|
|
|
mkdir -p avremu/doc/latex/avremu
|
|
|
|
cp source/avremu.pdf avremu/doc/latex/avremu
|
2014-10-13 13:47:14 +02:00
|
|
|
cp README avremu/doc/latex/avremu/README
|
2014-10-10 12:23:32 +02:00
|
|
|
cd avremu; zip -r ../avremu.tds.zip *
|
2014-10-09 18:15:27 +02:00
|
|
|
rm -rf avremu
|
2014-10-13 13:47:14 +02:00
|
|
|
# Assemble a Flat version
|
|
|
|
mkdir avremu
|
|
|
|
cp tex/latex/avremu/*.tex avremu/
|
|
|
|
cp tex/latex/avremu/*.sty avremu/
|
|
|
|
cp source/simple-testsuite.tex avremu/
|
|
|
|
cp source/avremu.tex avremu/
|
|
|
|
cp source/avremu.pdf avremu/
|
2014-10-14 10:58:56 +02:00
|
|
|
cp -L source/mandelbrot.png avremu/
|
|
|
|
cp source/test-suite/mandelbrot.c avremu/
|
2014-10-13 13:47:14 +02:00
|
|
|
|
|
|
|
cp README avremu/README
|
|
|
|
zip -r avremu.zip avremu/ avremu.tds.zip
|
|
|
|
rm -rf avremu
|
2014-10-09 18:15:27 +02:00
|
|
|
|
|
|
|
|
2014-10-13 13:47:14 +02:00
|
|
|
.PHONY: test-simple source/avremu.pdf avremu.zip
|