aboutsummaryrefslogtreecommitdiffstats
path: root/doc/module.mk
diff options
context:
space:
mode:
Diffstat (limited to 'doc/module.mk')
-rw-r--r--doc/module.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/module.mk b/doc/module.mk
new file mode 100644
index 0000000..1b365c8
--- /dev/null
+++ b/doc/module.mk
@@ -0,0 +1,31 @@
+# :vim: filetype=make : -*- makefile; coding: utf-8; -*-
+
+# doc/module.mk
+# Part of Bugs Everywhere, a distributed bug tracking system.
+#
+# Copyright © 2008 Ben Finney <ben+python@benfinney.id.au>
+# This is free software; you may copy, modify and/or distribute this work
+# under the terms of the GNU General Public License, version 2 or later.
+# No warranty expressed or implied. See the file COPYING for details.
+
+# Makefile module for documentation
+
+MODULE_DIR := doc
+
+MANPAGES = be.1
+manpage_files = $(patsubst %,${MODULE_DIR}/%,${MANPAGES})
+
+GENERATED_FILES += ${manpage_files}
+
+
+.PHONY: doc
+doc: man
+
+build: doc
+
+
+.PHONY: man
+man: ${manpage_files}
+
+%.1: %.1.sgml
+ docbook-to-man $< > $@