%.html: %.xml tohtml.xsl xsltproc --stringparam mode brief tohtml.xsl $< | tail +2 > $@ long-%.html: %.xml tohtml.xsl xsltproc --stringparam mode long tohtml.xsl $< | tail +2 > $@ %.tex: %.xml totex.xsl xsltproc --stringparam mode brief totex.xsl $< \ | sed -e 's/#/\\#/g' -e 's/&/\\\&/g' \ | tail +2 > $@ long-%.tex: %.xml totex.xsl xsltproc --stringparam mode long totex.xsl $< \ | sed -e 's/#/\\#/g' -e 's/&/\\\&/g' \ | tail +2 > $@ %.pdf: %.tex pdflatex $< all: resume.html long-resume.html resume.pdf long-resume.pdf clean: tidy rm -f resume.pdf rm -f resume.html rm -f long-resume.pdf rm -f long-resume.html tidy: rm -f resume.tex rm -f resume.log rm -f resume.out rm -f resume.aux rm -f long-resume.tex rm -f long-resume.log rm -f long-resume.out rm -f long-resume.aux .PHONY: all .PHONY: clean .PHONY: tidy