.PHONY: docs
docs: mimedecode.man mimedecode.txt mimedecode.html
-include Makefile.4xslt
+include Makefile.xsltproc
CLEANFILES = *.py[co] MANIFEST
--- /dev/null
+DOCBOOK_XSL=/usr/local/src/DocBook/docbook-xsl
+
+mimedecode.html: mimedecode.docbook Makefile.xsltproc
+ xsltproc $(DOCBOOK_XSL)/html/docbook.xsl $< >$@
+
+mimedecode.txt: mimedecode.html Makefile.xsltproc
+ elinks -dump $< >$@
+
+mimedecode.man: mimedecode.docbook Makefile.xsltproc
+ xsltproc $(DOCBOOK_XSL)/manpages/docbook.xsl $<
+ mv mimedecode.py.1 $@
<refsect1>
<title>COPYRIGHT</title>
<para>
- Copyright (C) 2001-2004 PhiloSoft Design
+ Copyright (C) 2001-2009 PhiloSoft Design
</para>
</refsect1>