aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-01-10 22:30:11 -0500
committerW. Trevor King <wking@drexel.edu>2011-01-10 22:30:11 -0500
commit2aeaa4e265deb093a5e37c5973deb8d932974491 (patch)
treecc898d16a4e8f5d32013ecdd854e2a7d7ba035f8 /Makefile
parent06e30d93038de9da326e4bc5c5ed7154b83a18e6 (diff)
downloadbugseverywhere-2aeaa4e265deb093a5e37c5973deb8d932974491.tar.gz
Use Docutils' rst2doc instead of DocBook XML to generate man page.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f7937f8..fce6060 100644
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,8 @@
SHELL = /bin/bash
RM = /bin/rm
-DB2MAN = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
-DB2HTML = http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl
-XP = /usr/bin/xsltproc --nonet --param man.charmap.use.subset "0" \
- --param make.year.ranges "1" --param make.single.year.ranges "1"
+RST2MAN = /usr/bin/rst2man
+RST2HTML = /usr/bin/rst2html
#PATH = /usr/bin:/bin # must include sphinx-build for 'sphinx' target.
@@ -50,7 +48,8 @@ LIBBE_VERSION := libbe/_version.py
GENERATED_FILES := build $(LIBBE_VERSION)
MANPAGE_FILES = $(patsubst %,${MAN_DIR}/%,${MANPAGES})
-GENERATED_FILES += ${MANPAGE_FILES}
+MANPAGE_HTML = $(patsubst %,${MAN_DIR}/%.html,${MANPAGES})
+GENERATED_FILES += ${MANPAGE_FILES} ${MANPAGE_HTML}
.PHONY: all
@@ -84,10 +83,10 @@ libbe/_version.py:
.PHONY: man
man: ${MANPAGE_FILES}
-%.1: %.1.xml
- $(XP) -o $@ $(DB2MAN) $<
-%.1.html: %.1.xml
- $(XP) -o $@ $(DB2HTML) $<
+%.1: %.1.txt
+ $(RST2MAN) $< > $@
+%.1.html: %.1.txt
+ $(RST2HTML) $< > $@
.PHONY: sphinx
sphinx: