From 07e5ffba6afd5579b85e5fe5bca93423d4f67f6c Mon Sep 17 00:00:00 2001 From: Joseph Koshy Date: Fri, 7 Feb 2003 07:29:57 +0000 Subject: [PATCH] Catch typos in the kernel name specified for an "installkernel" invocation early on, rather than failing later with an obscure error message. Make error messages appear consistent. --- Makefile.inc1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index c290a493e49a..c2ed4326c2d3 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -469,7 +469,7 @@ INSTALLKERNEL= ${_kernel} # buildkernel: .if empty(BUILDKERNELS) - @echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})." + @echo "ERROR: Missing kernel configuration file(s) (${KERNCONF})."; @false .endif .if defined(KERNWARN) @@ -528,6 +528,10 @@ buildkernel: # Install the kernel defined by INSTALLKERNEL # installkernel reinstallkernel: +.if empty(INSTALLKERNEL) + @echo "ERROR: No kernel \"${KERNCONF}\" to install." + @false +.endif cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \ ${CROSSENV} PATH=${TMPPATH} \ ${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}