1
0
mirror of synced 2024-11-24 14:04:23 +01:00
avremu/Makefile
2014-10-14 10:58:56 +02:00

55 lines
1.7 KiB
Makefile

export TEXINPUTS := $(shell pwd)//:${TEXINPUTS}
source/avremu.pdf:
cd source; latexmk -pdf -shell-escape avremu
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 $<)
avremu.zip: source/avremu.pdf
rm -rf avremu avremu.tds.zip avremu.zip
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
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
cp source/simple-testsuite.tex avremu/source/latex/avremu/
cp source/avremu.tex avremu/source/latex/avremu/
cp -L source/mandelbrot.png avremu/source/latex/avremu/
# Documenation directory
mkdir -p avremu/doc/latex/avremu
cp source/avremu.pdf avremu/doc/latex/avremu
cp README avremu/doc/latex/avremu/README
cd avremu; zip -r ../avremu.tds.zip *
rm -rf avremu
# 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/
cp -L source/mandelbrot.png avremu/
cp source/test-suite/mandelbrot.c avremu/
cp README avremu/README
zip -r avremu.zip avremu/ avremu.tds.zip
rm -rf avremu
.PHONY: test-simple source/avremu.pdf avremu.zip