summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2013-11-03 00:45:58 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2013-11-03 00:45:58 +0000
commit3a9520e1ce5cb2eefca05b321b0cb723d6a210b1 (patch)
tree2939ad0680a98e324a40c69c1e83cca1f53e7dd4 /Makefile
parent1e50fdcd55b588bd0ec96eae4e448324578bc65b (diff)
Add support for Asciidoc.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a02e928..a9ffc53 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ HTMLPSTP := $(SHEETDIR)/xhtml5/style/$(HTML_STYLE)/pstp.xsl
TSTROFF := tenorsax-troff
DBTOEPUB := dbtoepub
+ASCIIDOC := asciidoctor
PROFARGS := --stringparam profile.condition 'default;pdf'
STYLEARGS := --param fop1.extensions 1
@@ -23,7 +24,7 @@ STYLEARGS += --stringparam generate.toc "/ nop article nop book nop"
CUR = $<
-SRC_SUFFIXES := .dbx .mx
+SRC_SUFFIXES := .dbx .mx .adoc
GEN_SUFFIXES := .pdf .fo .rtf .txml .epub .html
DEPFILES := $(patsubst %.dbx,.%.d,$(wildcard *.dbx))
@@ -56,6 +57,9 @@ depend: $(DEPFILES)
.mx.txml:
$(TSTROFF) -mxd -Tdb5 -o $@ $(CUR)
+.adoc.txml:
+ $(ASCIIDOC) -bdocbook5 -o $@ $(CUR)
+
.dbx.fo .txml.fo:
(str="$(CUR)"; if [ -z "$${str##*/*}" ]; \
then \