summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-14 17:09:45 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-16 00:20:13 +0100
commit9197d3cbbc1e109b1c031071ffdeb27b37225728 (patch)
tree2e3ef6c567d5d861fd71505129585d057f74247c /Makefile
added the first practical
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..edec2ca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+SRC = $(wildcard *.adoc)
+
+HTML = $(SRC:.adoc=.html)
+PDF = $(SRC:.adoc=.pdf)
+
+all: $(HTML) $(PDF)
+
+%.html: %.adoc $(wildcard *.adoci)
+ asciidoc $<
+
+%.pdf: %.adoc $(wildcard *.adoci)
+ a2x $< -L