aboutsummaryrefslogtreecommitdiffstats
path: root/asciidoc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'asciidoc/Makefile')
-rw-r--r--asciidoc/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/asciidoc/Makefile b/asciidoc/Makefile
new file mode 100644
index 0000000..fefe422
--- /dev/null
+++ b/asciidoc/Makefile
@@ -0,0 +1,13 @@
+ASCIIDOC_SOURCE ?= example.txt
+ASCIIDOC_OUTPUT ?= output.html
+
+ASCIIDOC = asciidoc
+ASCIIDOC_FLAGS = -a toc2 \
+ -a data-uri \
+ -a toclevels=4 \
+ -a max-width=70em \
+ -b html5 \
+ --theme=volnitsky
+
+$(ASCIIDOC_OUTPUT): $(ASCIIDOC_SOURCE)
+ $(ASCIIDOC) $(ASCIIDOC_FLAGS) -o $@ $^