IMAGES!=ls image/*.dia DELFILES!=find . \( -name '*.svg' -o -name '*.html' \) .PHONY: all images up all: images presentation.html .for f in ${IMAGES} ${f:S/.dia$/.svg/}: @dia --export=$@ --filter=svg $f .endfor images: ${IMAGES:S/.dia$/.svg/} presentation.html: presentation.asciidoc asciidoc -b slidy presentation.asciidoc clean: rm -f ${DELFILES} up: all scp -r image presentation.html klemkow.net:www/wbs