aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc112
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 99f9798762be..40285dd5963b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1374,11 +1374,17 @@ _pkgbootstrap:
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
.endif
-packages: _pkgbootstrap
- @mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR}
+packages: stage-packages create-packages
+
+stage-packages:
+ @mkdir -p ${WSTAGEDIR} ${KSTAGEDIR}
${_+_}@cd ${.CURDIR}; \
${MAKE} DESTDIR=${DESTDIR:U${WSTAGEDIR}} -DNO_ROOT -B stageworld ; \
- ${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} -DNO_ROOT -B stagekernel ; \
+ ${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} -DNO_ROOT -B stagekernel
+
+create-packages: _pkgbootstrap
+ @mkdir -p ${REPODIR}
+ ${_+_}@cd ${.CURDIR}; \
${MAKE} DESTDIR=${DESTDIR:U${WSTAGEDIR}} \
PKG_VERSION=${PKG_VERSION} create-world-packages ; \
${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} \