aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:20:56 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:20:56 +0000
commit53f3deb16612564bd4154eae4317c3560e6890c6 (patch)
tree3c0abfa0825d25f7cadc6b7b1b009ad0e61ea3a0
parentfb3d959c6625cf17ba8f968c4a6e2caba39cf5ae (diff)
downloadsrc-53f3deb16612564bd4154eae4317c3560e6890c6.tar.gz
src-53f3deb16612564bd4154eae4317c3560e6890c6.zip
FAST_DEPEND clean hack: Remove lib32/soft files properly.
Only remove them if the option is enabled and also handle libsoft by using the proper LIBCOMPAT_OBJTREE. LIBCOMPAT:D will expand the text after it as a proper glob to the command line if LIBCOMPAT is defined. Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=325072
-rw-r--r--Makefile.inc18
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index f1ccb5751d95..cf73c8cd1dae 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -782,7 +782,7 @@ _cleanobj_fast_depend_hack: .PHONY
${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.o; then \
echo Removing stale dependencies for ${f} syscall wrappers; \
rm -f ${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.* \
- ${OBJTREE}${.CURDIR}/world32/${.CURDIR}/lib/libc/.depend.${f}.*; \
+ ${LIBCOMPAT:D${LIBCOMPAT_OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.*}; \
fi
.endif
.endfor
@@ -793,7 +793,7 @@ _cleanobj_fast_depend_hack: .PHONY
${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.o; then \
echo Removing stale dependencies for ${f} syscall wrappers; \
rm -f ${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.* \
- ${OBJTREE}${.CURDIR}/world32/${.CURDIR}/lib/libc/.depend.${f}.*; \
+ ${LIBCOMPAT:D${LIBCOMPAT_OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.*}; \
fi
.endif
.endfor
@@ -805,8 +805,8 @@ _cleanobj_fast_depend_hack: .PHONY
@echo Removing stale generated ${f} syscall files
@rm -f ${OBJTREE}${.CURDIR}/lib/libc/${f}.* \
${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.* \
- ${OBJTREE}${.CURDIR}/world32/${.CURDIR}/lib/libc/${f}.* \
- ${OBJTREE}${.CURDIR}/world32/${.CURDIR}/lib/libc/.depend.${f}.*
+ ${LIBCOMPAT:D${LIBCOMPAT_OBJTREE}${.CURDIR}/lib/libc/${f}.*} \
+ ${LIBCOMPAT:D${LIBCOMPAT_OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.*}
.endif
.endfor