Makefile
615 Bytes
all:
test: clean test-with-shell test-without-shell
clean:
rm -rf with-shell without-shell
test-with-shell:
mkdir with-shell
cp test.tex pytex.sty Makefile with-shell/
cp pytex.py with-shell/pytex
chmod +x with-shell/pytex
PATH=.:$$PATH make -C with-shell run-test-with-shell
run-test-with-shell:
pdflatex -shell-escape test
test-without-shell:
mkdir without-shell
cp test.tex pytex.sty Makefile without-shell/
cp pytex.py without-shell/pytex
chmod +x without-shell/pytex
PATH=.:$$PATH make -C without-shell run-test-without-shell
run-test-without-shell:
pdflatex test
pytex test
pdflatex test