From d7aebcb4f6cdb92ab409d241084c72f1a8acc250 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 27 Mar 2001 08:43:28 +0000 Subject: Make it possible to build manpages for the entire source tree. --- share/mk/bsd.doc.mk | 4 ++++ share/mk/bsd.info.mk | 4 ++++ share/mk/bsd.lib.mk | 7 ++++++- share/mk/bsd.prog.mk | 7 ++++++- share/mk/bsd.sgml.mk | 2 +- share/mk/bsd.subdir.mk | 4 ++-- 6 files changed, 23 insertions(+), 5 deletions(-) (limited to 'share/mk') diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 000e75a..74afc3d 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 b5251ec..9cbcac9 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 94cde80..96470ea 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -359,9 +359,14 @@ lint: .if !defined(NOMAN) .include -.elif !target(maninstall) +.else +.if !target(all-man) +all-man: +.endif +.if !target(maninstall) maninstall: .endif +.endif .include diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 6892f2b..596904a 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -165,9 +165,14 @@ tags: ${SRCS} _SUBDIR .if !defined(NOMAN) .include -.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 a4de905..3354870 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 6d85504..a26e5ef 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 -- cgit v1.1