aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 000000000..099a373d5
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,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)