aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2010-12-29 01:03:09 +0100
committerNikolaus Schulz <microschulz@web.de>2010-12-29 02:49:08 +0100
commitf6be896b1f8467f48a0f1edccb43c0a2a9eb4e6a (patch)
treeafb512f16c9b4b5821afd9b0fd4a1dc866fdf561 /Makefile
parentea0d95e1214932ee6a57f276bcff43d398a2e31b (diff)
downloadarchivemail-f6be896b1f8467f48a0f1edccb43c0a2a9eb4e6a.tar.gz
archivemail-f6be896b1f8467f48a0f1edccb43c0a2a9eb4e6a.tar.bz2
archivemail-f6be896b1f8467f48a0f1edccb43c0a2a9eb4e6a.zip
Port man page from SGML to XML
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cbf8651..4432631 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,9 @@ VERSION_TAG=v$(subst .,_,$(VERSION))
TARFILE=archivemail-$(VERSION).tar.gz
HTDOCS=htdocs-$(VERSION)
+# Path to XSLT stylesheet. Adapt to your needs.
+XSLT_MAN=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
+
default:
@echo "no default target"
@@ -42,13 +45,12 @@ $(HTDOCS).tgz: index.html archivemail.html RELNOTES style.css manpage.css
cd $(HTDOCS) && mv archivemail.html manpage.html
tar czf $(HTDOCS).tgz $(HTDOCS)
-archivemail.1: archivemail.sgml
- docbook2man archivemail.sgml
- chmod 644 archivemail.1
+archivemail.1: archivemail.xml
+ xsltproc $(XSLT_MAN) archivemail.xml
-archivemail.html: archivemail.sgml db2html.dsl
- docbook2html --dsl db2html.dsl -u archivemail.sgml
- chmod 644 archivemail.html
+archivemail.html: archivemail.xml db2html.xsl
+ xsltproc --output archivemail.html \
+ db2html.xsl archivemail.xml
tidy -modify -indent -f /dev/null archivemail.html || true
.PHONY: clean test clobber sdist tag upload doc htdocs