aboutsummaryrefslogtreecommitdiff
path: root/dependencies/uthash/doc/Makefile
blob: 099a373d5db6702c29a0c1cc1e6a2190f31b11ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
HTML=$(patsubst %.txt,%.html,$(wildcard *.txt))

all: $(HTML)

# when each target of a multi-target rule has its own prereq
# we use a static pattern rule.
$(HTML): %.html: %.txt
	asciidoc -a toc2 $<

TMP=/tmp/uthash-gh-pages
stage:
	mkdir -p ${TMP}
	rm -if ${TMP}/*
	cp *.html *.css *.png ${TMP}

.PHONY: clean
clean:
	$(RM) $(HTML)