diff options
author | Ed Maste <emaste@FreeBSD.org> | 2020-09-08 00:44:35 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2020-09-08 00:44:35 +0000 |
commit | 75766799863334570acf7a65510361f470ce3b3e (patch) | |
tree | 3c1ec2b616e51ac879bc23b5a178716c3e1642a4 /Makefile.libcompat | |
parent | 1fde30519104cec4ac5e2a791a867f578d72ace3 (diff) | |
download | src-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.libcompat | 4 |
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 \ |