summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-06-05 22:27:49 +0000
committerjilles <jilles@FreeBSD.org>2013-06-05 22:27:49 +0000
commit67e543ecf12264293093fba3bc1e364c44ff90ec (patch)
treee4be10a5a3df060701b08bad13fc68896aa902ce /Makefile.inc1
parentaa6dbdbade62d686e09845d5f04d32f31820bc9f (diff)
downloadFreeBSD-src-67e543ecf12264293093fba3bc1e364c44ff90ec.zip
FreeBSD-src-67e543ecf12264293093fba3bc1e364c44ff90ec.tar.gz
release: Allow empty extra distributions.
For example, WITHOUT_SHAREDOCS= in src.conf creates an empty doc distribution. Submitted by: Kurt Lidl Tested by: Kurt Lidl Discussed with: gjb MFC after: 1 week
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 2574e4d..f09aa97 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -798,7 +798,7 @@ distributeworld installworld: installcheck installcheck_UGID
${IMAKEENV} rm -rf ${INSTALLTMP}
.if make(distributeworld)
.for dist in ${EXTRA_DISTRIBUTIONS}
- find ${DESTDIR}/${DISTDIR}/${dist} -empty -delete
+ find ${DESTDIR}/${DISTDIR}/${dist} -mindepth 1 -empty -delete
.endfor
.if defined(NO_ROOT)
.for dist in base ${EXTRA_DISTRIBUTIONS}
OpenPOWER on IntegriCloud