Author: bdrewery
Date: Tue Aug  1 16:41:17 2017
New Revision: 321882
URL: https://svnweb.freebsd.org/changeset/base/321882

Log:
  NO_CLEAN: No need to run delete-old if the directories don't exist.
  
  X-MFC-With:   r321443
  MFC after:    1 month
  Sponsored by: Dell EMC Isilon

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1  Tue Aug  1 16:20:33 2017        (r321881)
+++ head/Makefile.inc1  Tue Aug  1 16:41:17 2017        (r321882)
@@ -760,10 +760,12 @@ _worldtmp: .PHONY
        rm -rf ${LIBCOMPATTMP}
 .endif
 .else
+.if exists(${WORLDTMP})
        @echo ">>> Deleting stale files in build tree..."
        ${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
            delete-old delete-old-libs >/dev/null
-.if defined(LIBCOMPAT)
+.endif
+.if defined(LIBCOMPAT) && exists(${LIBCOMPATTMP})
        ${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
            DESTDIR=${LIBCOMPATTMP} \
            delete-old delete-old-libs >/dev/null
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to