1HTML=$(patsubst %.txt,%.html,$(wildcard *.txt))
2
3all: $(HTML)
4
5# when each target of a multi-target rule has its own prereq
6# we use a static pattern rule.
7$(HTML): %.html: %.txt
8	asciidoc -a toc2 $<
9
10TMP=/tmp/uthash-gh-pages
11stage:
12	mkdir -p ${TMP}
13	rm -if ${TMP}/*
14	cp *.html *.css *.png ${TMP}
15
16.PHONY: clean
17clean:
18	$(RM) $(HTML)
19