aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-09-28 21:25:43 -0400
committerW. Trevor King <wking@drexel.edu>2010-09-28 21:29:07 -0400
commit8c9f876ae69f7bf92686edea320931d875b5c681 (patch)
tree1e1338b4cc140914ffa88e97a5d42c4cb4f21204 /Makefile
parentfe99ef2f6148790ef792ecf47ca3629a4d367890 (diff)
downloadbugseverywhere-8c9f876ae69f7bf92686edea320931d875b5c681.tar.gz
Converted man page source to DocBook V5.0.
This has the dual benefits of keeping up with the current DocBook standard as well as removing the dependency on SGML parsers like docbook-to-man and docbook2man which may not be available on all systems. An XSLT processor and the DocBook style sheets are easier dependencies to satisfy.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0b96832..c7203df 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,11 @@
# along with Bugs Everywhere. If not, see <http://www.gnu.org/licenses/>.
SHELL = /bin/bash
-RM = rm
+RM = /bin/rm
+DB2MAN = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
+XP = /usr/bin/xsltproc --nonet --param man.charmap.use.subset "0" \
+ --param make.year.ranges "1" --param make.single.year.ranges "1"
+
#PATH = /usr/bin:/bin # must include sphinx-build for 'sphinx' target.
#PREFIX = /usr/local
@@ -75,8 +79,8 @@ libbe/_version.py:
.PHONY: man
man: ${MANPAGE_FILES}
-%.1: %.1.sgml
- docbook-to-man $< > $@
+%.1: %.1.xml
+ $(XP) -o $@ $(DB2MAN) $<
.PHONY: sphinx
sphinx: