From a1506d0e42181017d0d535d426cb97e82e44fee8 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 22 Nov 2005 12:02:41 +0000 Subject: 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). --- Makefile.inc1 | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'Makefile.inc1') 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 -- cgit v1.1