files=$(shell ls {[0-9],[0-9][0-9]}.php | sed -e 's/php/html/') php=php all: dirs $(files) ln -sf 0.php index.php html: all dirs: mkdir -p html -cp -f *.jpg *.gif *.png *.css html/ ln -sf 0.html html/index.html %.html: $(php) -q $*.php | sed -e 's/\.php/\.html/' > html/$*.html .PHONY: all