summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-11-22 12:02:41 +0000
committerru <ru@FreeBSD.org>2005-11-22 12:02:41 +0000
commita1506d0e42181017d0d535d426cb97e82e44fee8 (patch)
tree47a180c0b337f75267f6a989f6c35183b1c20e92 /Makefile.inc1
parent9ee6c15b32f98ff34ae08346b481d0f66a576d4c (diff)
downloadFreeBSD-src-a1506d0e42181017d0d535d426cb97e82e44fee8.zip
FreeBSD-src-a1506d0e42181017d0d535d426cb97e82e44fee8.tar.gz
Get rid of SPECIAL_INSTALLCHECKS variable that isn't settable
by a user. Instead, add individual checks as dependencies to the main "installcheck" target. Make sure that installkernel etc. depend on it (including the UID/GID checks).
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc119
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index ed7a72d..aecdbd3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -477,16 +477,18 @@ toolchain: ${TOOLCHAIN_TGTS}
kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries}
#
-# Use this to add checks to installworld/installkernel targets.
+# installcheck
+#
+# Checks to be sure system is ready for installworld/installkernel.
#
-SPECIAL_INSTALLCHECKS=
+installcheck:
#
# Require DESTDIR to be set if installing for a different architecture.
#
.if ${TARGET_ARCH} != ${MACHINE_ARCH} || ${TARGET} != ${MACHINE}
.if !make(distributeworld)
-SPECIAL_INSTALLCHECKS+= installcheck_DESTDIR
+installcheck: installcheck_DESTDIR
installcheck_DESTDIR:
.if !defined(DESTDIR) || empty(DESTDIR)
@echo "ERROR: Please set DESTDIR!"; \
@@ -496,9 +498,7 @@ installcheck_DESTDIR:
.endif
#
-# installcheck
-#
-# Checks to be sure system is ready for installworld
+# Check for missing UIDs/GIDs.
#
CHECK_UIDS=
CHECK_GIDS=
@@ -510,7 +510,8 @@ CHECK_GIDS+= smmsp
CHECK_UIDS+= proxy
CHECK_GIDS+= proxy authpf
.endif
-installcheck: ${SPECIAL_INSTALLCHECKS}
+installcheck: installcheck_UGID
+installcheck_UGID:
.for uid in ${CHECK_UIDS}
@if ! `id -u ${uid} >/dev/null 2>&1`; then \
echo "ERROR: Required ${uid} user is missing, see /usr/src/UPDATING."; \
@@ -551,7 +552,7 @@ distributeworld installworld: installcheck
# and do a 'make reinstall' on the *client* to install new binaries from the
# most recent server build.
#
-reinstall: ${SPECIAL_INSTALLCHECKS}
+reinstall: installcheck
@echo "--------------------------------------------------------------"
@echo ">>> Making hierarchy"
@echo "--------------------------------------------------------------"
@@ -698,7 +699,7 @@ buildkernel:
# Install the kernel defined by INSTALLKERNEL
#
installkernel installkernel.debug \
-reinstallkernel reinstallkernel.debug: ${SPECIAL_INSTALLCHECKS}
+reinstallkernel reinstallkernel.debug: installcheck
.if empty(INSTALLKERNEL)
@echo "ERROR: No kernel \"${KERNCONF}\" to install."; \
false
OpenPOWER on IntegriCloud