lns=~/latex-namespace/trunk/latex-namespace lhs=~/lhs2tex-install/bin/lhs2TeX figures := $(wildcard figures/*.pdf) all: ruler-tutorial.pdf ruler-tutorial.pdf: ruler-tutorial.tex $(figures) pdflatex ruler-tutorial.tex ruler-tutorial.tex: ruler-tutorial.lns $(lns) -s ruler-tutorial.lns -o ruler-tutorial.tex ruler-tutorial.lns: ruler-tutorial.lhs $(lhs) --poly ruler-tutorial.lhs -o ruler-tutorial.lns remake: all pdflatex ruler-tutorial.tex