aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-03-27 08:43:28 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-03-27 08:43:28 +0000
commit918fb560b426605f99adca2e6ee7a8189117edfc (patch)
treeb1598391992309eb91c85f50b75e942215176c08
parentf2a404d5a6edc33fb204d23cca7c62582d9edfa5 (diff)
downloadsrc-918fb560b426605f99adca2e6ee7a8189117edfc.tar.gz
src-918fb560b426605f99adca2e6ee7a8189117edfc.zip
Make it possible to build manpages for the entire source tree.
Notes
Notes: svn path=/head/; revision=74842
-rw-r--r--Makefile2
-rw-r--r--share/mk/bsd.doc.mk4
-rw-r--r--share/mk/bsd.info.mk4
-rw-r--r--share/mk/bsd.lib.mk7
-rw-r--r--share/mk/bsd.prog.mk7
-rw-r--r--share/mk/bsd.sgml.mk2
-rw-r--r--share/mk/bsd.subdir.mk4
7 files changed, 24 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 68abfb553ab0..1733d670f988 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@
# Define the user-driven targets. These are listed here in alphabetical
# order, but that's not important.
#
-TGTS= afterdistribute all buildkernel buildworld checkdpadd clean \
+TGTS= afterdistribute all all-man buildkernel buildworld checkdpadd clean \
cleandepend cleandir depend distribute distribworld everything \
hierarchy includes install installkernel kernel reinstallkernel \
installmost installworld libraries lint maninstall mk most obj \
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk
index 000e75a8ab90..74afc3dc163b 100644
--- a/share/mk/bsd.doc.mk
+++ b/share/mk/bsd.doc.mk
@@ -162,6 +162,10 @@ ${DFILE}: ${SRCS} _stamp.extraobjs
.endif
.endif
+.if !target(all-man)
+all-man:
+.endif
+
.if !target(maninstall)
maninstall:
.endif
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
index b5251ecb819a..9cbcac987380 100644
--- a/share/mk/bsd.info.mk
+++ b/share/mk/bsd.info.mk
@@ -215,6 +215,10 @@ install: __null_install
__null_install:
.endif
+.if !target(all-man)
+all-man: _SUBDIR
+.endif
+
.if !target(maninstall)
maninstall: _SUBDIR
.endif
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 94cde807cf8e..96470ea19337 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -359,9 +359,14 @@ lint:
.if !defined(NOMAN)
.include <bsd.man.mk>
-.elif !target(maninstall)
+.else
+.if !target(all-man)
+all-man:
+.endif
+.if !target(maninstall)
maninstall:
.endif
+.endif
.include <bsd.dep.mk>
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 6892f2b6a05b..596904a29ca3 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -165,9 +165,14 @@ tags: ${SRCS} _SUBDIR
.if !defined(NOMAN)
.include <bsd.man.mk>
-.elif !target(maninstall)
+.else
+.if !target(all-man)
+all-man:
+.endif
+.if !target(maninstall)
maninstall:
.endif
+.endif
.if !target(regress)
regress:
diff --git a/share/mk/bsd.sgml.mk b/share/mk/bsd.sgml.mk
index a4de905a32ea..33548701ccda 100644
--- a/share/mk/bsd.sgml.mk
+++ b/share/mk/bsd.sgml.mk
@@ -206,7 +206,7 @@ CLEANFILES+= ${DOC}.${_XFORMAT}
.endfor
-.for __target in beforeinstall afterinstall maninstall _SUBDIR
+.for __target in beforeinstall afterinstall all-man maninstall _SUBDIR
.if !target(${__target})
${__target}:
.endif
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index 6d8550409d8d..a26e5ef48128 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -31,7 +31,7 @@
# This is a variant of install, which will
# put the stuff into the right "distribution".
#
-# afterdistribute, afterinstall, all, beforeinstall, checkdpadd,
+# afterdistribute, afterinstall, all, all-man, beforeinstall, checkdpadd,
# clean, cleandepend, cleandir, depend, install, lint, maninstall,
# obj, objlink, realinstall, regress, tags
#
@@ -87,7 +87,7 @@ ${SUBDIR}::
${MAKE} all
-.for __target in all checkdpadd clean cleandepend cleandir depend lint \
+.for __target in all all-man checkdpadd clean cleandepend cleandir depend lint \
maninstall obj objlink regress tags
.if !target(${__target})
${__target}: _SUBDIRUSE