make obj: Skip treewalk if AUTO_OBJ is enabled.
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
3d165b2f1e
commit
f8b15066f2
@ -38,12 +38,16 @@
|
||||
.if !target(__<bsd.subdir.mk>__)
|
||||
__<bsd.subdir.mk>__:
|
||||
|
||||
.if ${MK_AUTO_OBJ} == "no"
|
||||
_obj= obj
|
||||
.endif
|
||||
|
||||
SUBDIR_TARGETS+= \
|
||||
all all-man analyze buildconfig buildfiles buildincludes \
|
||||
checkdpadd clean cleandepend cleandir cleanilinks \
|
||||
cleanobj depend distribute files includes installconfig \
|
||||
installfiles installincludes print-dir realinstall lint \
|
||||
maninstall manlint obj objlink tags \
|
||||
maninstall manlint ${_obj} objlink tags \
|
||||
|
||||
# Described above.
|
||||
STANDALONE_SUBDIR_TARGETS+= \
|
||||
@ -69,6 +73,10 @@ print-dir: .PHONY
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MK_AUTO_OBJ} == "yes" && !target(obj)
|
||||
obj: .PHONY
|
||||
.endif
|
||||
|
||||
.if !defined(NEED_SUBDIR)
|
||||
# .MAKE.DEPENDFILE==/dev/null is set by bsd.dep.mk to avoid reading
|
||||
# Makefile.depend
|
||||
|
Loading…
x
Reference in New Issue
Block a user