Make it possible to build manpages for the entire source tree.
This commit is contained in:
parent
f2a404d5a6
commit
918fb560b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74842
2
Makefile
2
Makefile
@ -84,7 +84,7 @@
|
|||||||
# Define the user-driven targets. These are listed here in alphabetical
|
# Define the user-driven targets. These are listed here in alphabetical
|
||||||
# order, but that's not important.
|
# 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 \
|
cleandepend cleandir depend distribute distribworld everything \
|
||||||
hierarchy includes install installkernel kernel reinstallkernel \
|
hierarchy includes install installkernel kernel reinstallkernel \
|
||||||
installmost installworld libraries lint maninstall mk most obj \
|
installmost installworld libraries lint maninstall mk most obj \
|
||||||
|
@ -162,6 +162,10 @@ ${DFILE}: ${SRCS} _stamp.extraobjs
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !target(all-man)
|
||||||
|
all-man:
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !target(maninstall)
|
.if !target(maninstall)
|
||||||
maninstall:
|
maninstall:
|
||||||
.endif
|
.endif
|
||||||
|
@ -215,6 +215,10 @@ install: __null_install
|
|||||||
__null_install:
|
__null_install:
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !target(all-man)
|
||||||
|
all-man: _SUBDIR
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !target(maninstall)
|
.if !target(maninstall)
|
||||||
maninstall: _SUBDIR
|
maninstall: _SUBDIR
|
||||||
.endif
|
.endif
|
||||||
|
@ -359,9 +359,14 @@ lint:
|
|||||||
|
|
||||||
.if !defined(NOMAN)
|
.if !defined(NOMAN)
|
||||||
.include <bsd.man.mk>
|
.include <bsd.man.mk>
|
||||||
.elif !target(maninstall)
|
.else
|
||||||
|
.if !target(all-man)
|
||||||
|
all-man:
|
||||||
|
.endif
|
||||||
|
.if !target(maninstall)
|
||||||
maninstall:
|
maninstall:
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.dep.mk>
|
.include <bsd.dep.mk>
|
||||||
|
|
||||||
|
@ -165,9 +165,14 @@ tags: ${SRCS} _SUBDIR
|
|||||||
|
|
||||||
.if !defined(NOMAN)
|
.if !defined(NOMAN)
|
||||||
.include <bsd.man.mk>
|
.include <bsd.man.mk>
|
||||||
.elif !target(maninstall)
|
.else
|
||||||
|
.if !target(all-man)
|
||||||
|
all-man:
|
||||||
|
.endif
|
||||||
|
.if !target(maninstall)
|
||||||
maninstall:
|
maninstall:
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !target(regress)
|
.if !target(regress)
|
||||||
regress:
|
regress:
|
||||||
|
@ -206,7 +206,7 @@ CLEANFILES+= ${DOC}.${_XFORMAT}
|
|||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
|
||||||
.for __target in beforeinstall afterinstall maninstall _SUBDIR
|
.for __target in beforeinstall afterinstall all-man maninstall _SUBDIR
|
||||||
.if !target(${__target})
|
.if !target(${__target})
|
||||||
${__target}:
|
${__target}:
|
||||||
.endif
|
.endif
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
# This is a variant of install, which will
|
# This is a variant of install, which will
|
||||||
# put the stuff into the right "distribution".
|
# 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,
|
# clean, cleandepend, cleandir, depend, install, lint, maninstall,
|
||||||
# obj, objlink, realinstall, regress, tags
|
# obj, objlink, realinstall, regress, tags
|
||||||
#
|
#
|
||||||
@ -87,7 +87,7 @@ ${SUBDIR}::
|
|||||||
${MAKE} all
|
${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
|
maninstall obj objlink regress tags
|
||||||
.if !target(${__target})
|
.if !target(${__target})
|
||||||
${__target}: _SUBDIRUSE
|
${__target}: _SUBDIRUSE
|
||||||
|
Loading…
Reference in New Issue
Block a user