summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-01-28 23:59:34 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-01-28 23:59:34 +0000
commitd7a8d3868c82c9cb88ea8b91ef97e73e28567a26 (patch)
treef70eb71141cb954444b0c7b21cba6d936ac96398 /Makefile.inc1
parenta5a71822df59f065eed64423dfc83cc9446e76c8 (diff)
downloadsrc-test2-d7a8d3868c82c9cb88ea8b91ef97e73e28567a26.tar.gz
src-test2-d7a8d3868c82c9cb88ea8b91ef97e73e28567a26.zip
Avoid excessively invoking 'pkg bootstrap' if already done.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-pkg/; revision=295023
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index e49ed4015505..3b13989477f3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1371,7 +1371,9 @@ REPODIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/repo
PKGSIGNKEY?= # empty
_pkgbootstrap:
+.if !exists(${LOCALBASE}/sbin/pkg)
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
+.endif
packages: _pkgbootstrap
@mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR}