Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2017 21:22:16 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325291 - head/share/mk
Message-ID:  <201711012122.vA1LMG7h025638@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Wed Nov  1 21:22:16 2017
New Revision: 325291
URL: https://svnweb.freebsd.org/changeset/base/325291

Log:
  make obj: Skip treewalk if AUTO_OBJ is enabled.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  head/share/mk/bsd.subdir.mk

Modified: head/share/mk/bsd.subdir.mk
==============================================================================
--- head/share/mk/bsd.subdir.mk	Wed Nov  1 21:22:13 2017	(r325290)
+++ head/share/mk/bsd.subdir.mk	Wed Nov  1 21:22:16 2017	(r325291)
@@ -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+= \
@@ -67,6 +71,10 @@ ECHODIR=	:
 print-dir:	.PHONY
 	@echo ${RELDIR}
 .endif
+.endif
+
+.if ${MK_AUTO_OBJ} == "yes" && !target(obj)
+obj: .PHONY
 .endif
 
 .if !defined(NEED_SUBDIR)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711012122.vA1LMG7h025638>