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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to