aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-09-08 00:44:35 +0000
committerEd Maste <emaste@FreeBSD.org>2020-09-08 00:44:35 +0000
commit75766799863334570acf7a65510361f470ce3b3e (patch)
tree3c1ec2b616e51ac879bc23b5a178716c3e1642a4 /Makefile.libcompat
parent1fde30519104cec4ac5e2a791a867f578d72ace3 (diff)
downloadsrc-75766799863334570acf7a65510361f470ce3b3e.tar.gz
src-75766799863334570acf7a65510361f470ce3b3e.zip
Add WITH_/WITHOUT_CLEAN option to replace NO_CLEAN
This allows use of the standard src.conf configuration for controlling whether the tree is cleaned before build or not. The default is still to clean. Setting either NOCLEAN or NO_CLEAN will mention the new src.conf option. NOCLEAN remains a .warning, while for now NO_CLEAN is .info. Reviewed by: bdrewery (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22762
Notes
Notes: svn path=/head/; revision=365439
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r--Makefile.libcompat4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat
index ad67fd114b34..08630e9909b2 100644
--- a/Makefile.libcompat
+++ b/Makefile.libcompat
@@ -62,7 +62,7 @@ build${libcompat}: .PHONY
@echo "--------------------------------------------------------------"
@echo ">>> stage 4.3: building lib${libcompat} shim libraries"
@echo "--------------------------------------------------------------"
-.if !defined(NO_CLEAN)
+.if ${MK_CLEAN} == "yes"
rm -rf ${LIBCOMPATTMP}
.else
${_+_}@if [ -e "${LIBCOMPATTMP}" ]; then \
@@ -71,7 +71,7 @@ build${libcompat}: .PHONY
DESTDIR=${LIBCOMPATTMP} \
delete-old delete-old-libs >/dev/null; \
fi
-.endif # !defined(NO_CLEAN)
+.endif # MK_CLEAN == "yes"
mkdir -p ${LIBCOMPATTMP}/usr/include
${WORLDTMP_MTREE} -f ${.CURDIR}/etc/mtree/BSD.usr.dist \