aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:21:02 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-10-29 01:21:02 +0000
commit67d2f51ad6c05243f7a6f3b7bcabdec51035025e (patch)
tree5c7bb91fea1547da32e309233861d40febd0111c /Makefile.libcompat
parenta3d90ddfb223a36bdee0a191c9e3c8874d3d4936 (diff)
downloadsrc-67d2f51ad6c05243f7a6f3b7bcabdec51035025e.tar.gz
src-67d2f51ad6c05243f7a6f3b7bcabdec51035025e.zip
Move some LIBCOMPAT tmpdir logic setup to its own build target.
Its own build target was already handling mtree extractions just as _worldtmp did, so the other cleaning of the tmpdir makes sense here as well. Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=325074
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r--Makefile.libcompat10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat
index 4a3d777a279b..43d6273053d6 100644
--- a/Makefile.libcompat
+++ b/Makefile.libcompat
@@ -148,6 +148,16 @@ build${libcompat}: .PHONY
@echo "--------------------------------------------------------------"
@echo ">>> stage 5.1: building lib${libcompat} shim libraries"
@echo "--------------------------------------------------------------"
+.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
+.endif # !defined(NO_CLEAN)
+
mkdir -p ${LIBCOMPATTMP}/usr/include
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
-p ${LIBCOMPATTMP}/usr >/dev/null