aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-02-10 22:05:57 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-02-10 22:05:57 +0000
commitc69a9896cb30187a47a11743ea4743f905b4e304 (patch)
tree9336c2eecf5a780619d2c049ca84ea7c4e56aef8 /Makefile.inc1
parent480180df52fdcb214eaf8d3b302157ce37928532 (diff)
downloadsrc-c69a9896cb30187a47a11743ea4743f905b4e304.tar.gz
src-c69a9896cb30187a47a11743ea4743f905b4e304.zip
Add a new target make stageworld which basically does the same job as:
make installworld distribution but preparing the mtree the same way distributeworld does and respecting -DNO_ROOT
Notes
Notes: svn path=/projects/release-pkg/; revision=278540
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc118
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index bbae094c3ba9..cae2f22f7e3f 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -215,7 +215,7 @@ TMPPATH= ${STRICTTMPPATH}:${PATH}
# It may not be functional, e.g., due to new ABI
# when in the middle of installing over this system.
#
-.if make(distributeworld) || make(installworld)
+.if make(distributeworld) || make(installworld) || make(stageworld)
INSTALLTMP!= /usr/bin/mktemp -d -u -t install
.endif
@@ -842,7 +842,7 @@ DEBUG_DISTRIBUTIONS+= base ${EXTRA_DISTRIBUTIONS:S,doc,,}
MTREE_MAGIC?= mtree 2.0
-distributeworld installworld: _installcheck_world
+distributeworld installworld stageworld: _installcheck_world
mkdir -p ${INSTALLTMP}
progs=$$(for prog in ${ITOOLS}; do \
if progpath=`which $$prog`; then \
@@ -978,6 +978,20 @@ reinstall: .MAKE
${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install32
.endif
+restage: .MAKE
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Making hierarchy"
+ @echo "--------------------------------------------------------------"
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 \
+ LOCAL_MTREE=${LOCAL_MTREE:Q} hierarchy distribution
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Installing everything"
+ @echo "--------------------------------------------------------------"
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
+.if defined(LIB32TMP) && ${MK_LIB32} != "no"
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install32
+.endif
redistribute: .MAKE
@echo "--------------------------------------------------------------"
@echo ">>> Distributing everything"