Revert r289282 for now as the interaction with a directory containing
bsd.files.mk and bsd.subdir.mk is recursing too many times.
This commit is contained in:
@@ -84,7 +84,4 @@ STAGE_TARGETS+= stage_config
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
config: buildconfig installconfig
|
|
||||||
.ORDER: buildconfig installconfig
|
|
||||||
|
|
||||||
.endif # ${MK_INCLUDES} != "no"
|
.endif # ${MK_INCLUDES} != "no"
|
||||||
|
|||||||
@@ -94,7 +94,4 @@ buildfiles: stage_as
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
files: buildfiles installfiles
|
|
||||||
.ORDER: buildfiles installfiles
|
|
||||||
|
|
||||||
.endif # !target(__<bsd.files.mk>__)
|
.endif # !target(__<bsd.files.mk>__)
|
||||||
|
|||||||
@@ -99,7 +99,4 @@ STAGE_SYMLINKS.INCS= ${INCSLINKS}
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
includes: buildincludes installincludes
|
|
||||||
.ORDER: buildincludes installincludes
|
|
||||||
|
|
||||||
.endif # ${MK_INCLUDES} != "no"
|
.endif # ${MK_INCLUDES} != "no"
|
||||||
|
|||||||
+20
-6
@@ -32,12 +32,9 @@
|
|||||||
.if !target(__<bsd.subdir.mk>__)
|
.if !target(__<bsd.subdir.mk>__)
|
||||||
__<bsd.subdir.mk>__:
|
__<bsd.subdir.mk>__:
|
||||||
|
|
||||||
ALL_SUBDIR_TARGETS= all all-man buildconfig buildfiles buildincludes \
|
ALL_SUBDIR_TARGETS= all all-man checkdpadd clean cleandepend cleandir \
|
||||||
checkdpadd clean cleandepend cleandir cleanilinks \
|
cleanilinks cleanobj depend distribute lint maninstall manlint obj \
|
||||||
cleanobj config depend distribute files includes \
|
objlink realinstall regress tags ${SUBDIR_TARGETS}
|
||||||
installconfig installfiles installincludes lint \
|
|
||||||
maninstall manlint obj objlink realinstall regress tags \
|
|
||||||
${SUBDIR_TARGETS}
|
|
||||||
|
|
||||||
.include <bsd.init.mk>
|
.include <bsd.init.mk>
|
||||||
|
|
||||||
@@ -126,6 +123,23 @@ _sub.${__target}: _SUBDIR
|
|||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
# This is to support 'make includes' calling 'make buildincludes' and
|
||||||
|
# 'make installincludes' in the proper order, and to support these
|
||||||
|
# targets as SUBDIR_TARGETS.
|
||||||
|
.for __target in files includes config
|
||||||
|
.for __stage in build install
|
||||||
|
${__stage}${__target}:
|
||||||
|
.if make(${__stage}${__target})
|
||||||
|
${__stage}${__target}: _sub.${__stage}${__target}
|
||||||
|
_sub.${__stage}${__target}: _SUBDIR
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
.if !target(${__target})
|
||||||
|
${__target}: .MAKE
|
||||||
|
${_+_}cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target}
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(install)
|
.if !target(install)
|
||||||
|
|||||||
Reference in New Issue
Block a user