summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/makefile b/makefile
index e69de29..fdadaee 100644
--- a/makefile
+++ b/makefile
@@ -0,0 +1,14 @@
+MD = $(shell find md/ -type f -name '*.md')
+INC = $(shell find md/ -type f -name '*.inc')
+HTML_PAGE = $(patsubst md/%.md, html/%.html, $(MD))
+HTML_INCL = $(patsubst md/%.inc, html/%.html, $(INC))
+
+.PHONY: all
+all: $(HTML_PAGE)
+
+html/%.html: md/%.md
+ @mkdir -p "$(@D)"
+ @pandoc "$<" -s -o "$@"
+
+clean:
+ @rm -rf html/