summaryrefslogtreecommitdiff
path: root/buildlib/manpage.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:46 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:46 +0000
commitac96654175265aacb34f3660d35667d26feba138 (patch)
tree5ac0415e0ad77804b868d0e8786278fef2b1adcc /buildlib/manpage.mak
parent094a497dd2dba1f47157e07d57f97c338a5ddaa0 (diff)
Documentation support
Author: jgg Date: 1998-07-13 02:01:28 GMT Documentation support
Diffstat (limited to 'buildlib/manpage.mak')
-rw-r--r--buildlib/manpage.mak27
1 files changed, 27 insertions, 0 deletions
diff --git a/buildlib/manpage.mak b/buildlib/manpage.mak
new file mode 100644
index 000000000..d6a4ba3a5
--- /dev/null
+++ b/buildlib/manpage.mak
@@ -0,0 +1,27 @@
+# -*- make -*-
+
+# This installs man pages into the doc directory
+
+# Input
+# $(SOURCE) - The documents to use
+
+# All output is writtin to files in the build doc directory
+
+# See defaults.mak for information about LOCAL
+
+# Some local definitions
+LOCAL := manpage-$(firstword $(SOURCE))
+$(LOCAL)-LIST := $(addprefix $(DOC)/,$(SOURCE))
+
+# Install generation hooks
+doc: $($(LOCAL)-LIST)
+veryclean: veryclean/$(LOCAL)
+
+$($(LOCAL)-LIST) : $(DOC)/% : %
+ echo Installing man page %< to $(@D)
+ cp $< $(@D)
+
+# Clean rule
+.PHONY: veryclean/$(LOCAL)
+veryclean/$(LOCAL):
+ -rm -rf $($(@F)-LIST)