diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2018-06-20 17:20:39 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2018-06-20 17:20:39 +0000 |
commit | 6e6be2bbe24c194df02c1e135251671830114aa5 (patch) | |
tree | 8e33bd3adf731d3e6435f0224549172717b81836 /Makefile.libcompat | |
parent | be9309decdbd3cfdc6495cb6c40ff24efc1427d0 (diff) | |
download | src-6e6be2bbe24c194df02c1e135251671830114aa5.tar.gz src-6e6be2bbe24c194df02c1e135251671830114aa5.zip |
Reduce exec and fstat overhead for non-build targets.
This is mostly targetting 'make showconfig' and 'make test-system-*' for
the benefit of makeman and universe-one-clang work.
Sponsored by: Dell EMC
Notes
Notes:
svn path=/head/; revision=335452
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r-- | Makefile.libcompat | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat index 44a158d518bb..8d7b00047254 100644 --- a/Makefile.libcompat +++ b/Makefile.libcompat @@ -172,11 +172,12 @@ build${libcompat}: .PHONY .if !defined(NO_CLEAN) rm -rf ${LIBCOMPATTMP} .else -.if exists(${LIBCOMPATTMP}) - ${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \ - DESTDIR=${LIBCOMPATTMP} \ - delete-old delete-old-libs >/dev/null -.endif + ${_+_}@if [ -e "${LIBCOMPATTMP}" ]; then \ + echo ">>> Deleting stale files in build${libcompat} tree..."; \ + cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \ + DESTDIR=${LIBCOMPATTMP} \ + delete-old delete-old-libs >/dev/null; \ + fi .endif # !defined(NO_CLEAN) mkdir -p ${LIBCOMPATTMP}/usr/include |