# find all source files SOURCES != find src -type f \( -name "*.sh" -o -name "*.md" -o -name "*.html" \) TARGETS = $(SOURCES:C/\..*/.html/) # content suffixes .SUFFIXES: .sh .md .html all: ${TARGETS} # breaks it: $(TARGETS:S/src/pub/) @echo "done." .sh.html: @echo "Creating $@ from $< .html.html: @echo "Creating $@ from $< .md.html: @echo "Creating $@ from $<