aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2023-07-27 04:10:49 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2023-07-27 04:10:49 +0000
commitd81da4c98328d4ee3fe4c0a85f6874a3c69a1afd (patch)
tree286360b85648ce4f59f3d37d6a737fe439e67df0 /Makefile.inc1
parent03e62670c33c5d68ea69c842c24fe86765e2639e (diff)
downloadsrc-d81da4c98328d4ee3fe4c0a85f6874a3c69a1afd.tar.gz
src-d81da4c98328d4ee3fe4c0a85f6874a3c69a1afd.zip
Makefile.inc1: Add new buildetc and installetc targets
These implement the steps that etcupdate (and mergemaster) need in order to build their pristine trees, avoiding the need to use internal targets and variables. Additionally, buildetc includes the steps needed to build with BUILD_WITH_STRICT_TMPPATH enabled, since we need some host tools to be available during the various build and install steps. Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D41205
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc123
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index aa65711fbc0b..f8d4b4333d99 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1624,6 +1624,29 @@ distrib-dirs distribution: .MAKE .PHONY
.endif
#
+# buildetc and installetc
+#
+buildetc: .MAKE .PHONY
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 _worldtmp
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 _legacy
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 _bootstrap-tools \
+ MK_CROSS_COMPILER=no MK_TOOLCHAIN=no
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 _obj \
+ SUBDIR_OVERRIDE=etc
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 everything \
+ SUBDIR_OVERRIDE=etc
+
+installetc: .MAKE .PHONY
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Making hierarchy"
+ @echo "--------------------------------------------------------------"
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distrib-dirs
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Making distribution"
+ @echo "--------------------------------------------------------------"
+ ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribution
+
+#
# buildkernel and installkernel
#
# Which kernels to build and/or install is specified by setting