diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2003-02-07 07:29:57 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2003-02-07 07:29:57 +0000 |
commit | 0194489d8e8273bcbd69c6b37152963c28783f00 (patch) | |
tree | 4a65e4eaba9f2640b58d109cb4b42c26c6daaefa /Makefile.inc1 | |
parent | c51be9020846314307740f6fb7cee05c554e3a87 (diff) | |
download | FreeBSD-src-0194489d8e8273bcbd69c6b37152963c28783f00.zip FreeBSD-src-0194489d8e8273bcbd69c6b37152963c28783f00.tar.gz |
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.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index c290a49..c2ed432 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$//} |