1 2 3 4 5 6 7 8 9 10 11 12 13
BASENAMES=$(basename $(wildcard *.md)) SOURCES=$(foreach source,$(BASENAMES),$(source).md) TARGETS=$(foreach target,$(BASENAMES),$(target).html) .PHONY: all all: $(TARGETS) %.html: %.md marked -o $@ $< .PHONY: clean clean: rm -f $(TARGETS)