From 48edb949426259fc48eb67bef88e60b0f6741254 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 2 May 1996 21:40:50 +0000 Subject: [PATCH] Replace the dependency of `install' from `kernel' by a test for the existance fo `kernel'. Submitted by: peter --- sys/conf/Makefile.i386 | 8 ++++++-- sys/conf/Makefile.powerpc | 8 ++++++-- sys/i386/conf/Makefile.i386 | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index 6fcdbfc9c799..132ebbb42353 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -1,6 +1,6 @@ # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.i386,v 1.79 1996/04/27 07:30:49 joerg Exp $ +# $Id: Makefile.i386,v 1.80 1996/05/02 14:19:35 phk Exp $ # # Makefile for FreeBSD # @@ -155,7 +155,11 @@ links: tags: @echo "see $S/kern/Makefile for tags" -install: kernel +install: + @if [ ! -f kernel ] ; then \ + echo "You must first build your kernel before trying to install." ; \ + exit 1 ; \ + fi chflags noschg /kernel mv /kernel /kernel.old if [ `sysctl -n kern.bootfile` = /kernel ] ; then \ diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index 6fcdbfc9c799..132ebbb42353 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -1,6 +1,6 @@ # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.i386,v 1.79 1996/04/27 07:30:49 joerg Exp $ +# $Id: Makefile.i386,v 1.80 1996/05/02 14:19:35 phk Exp $ # # Makefile for FreeBSD # @@ -155,7 +155,11 @@ links: tags: @echo "see $S/kern/Makefile for tags" -install: kernel +install: + @if [ ! -f kernel ] ; then \ + echo "You must first build your kernel before trying to install." ; \ + exit 1 ; \ + fi chflags noschg /kernel mv /kernel /kernel.old if [ `sysctl -n kern.bootfile` = /kernel ] ; then \ diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386 index 6fcdbfc9c799..132ebbb42353 100644 --- a/sys/i386/conf/Makefile.i386 +++ b/sys/i386/conf/Makefile.i386 @@ -1,6 +1,6 @@ # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.i386,v 1.79 1996/04/27 07:30:49 joerg Exp $ +# $Id: Makefile.i386,v 1.80 1996/05/02 14:19:35 phk Exp $ # # Makefile for FreeBSD # @@ -155,7 +155,11 @@ links: tags: @echo "see $S/kern/Makefile for tags" -install: kernel +install: + @if [ ! -f kernel ] ; then \ + echo "You must first build your kernel before trying to install." ; \ + exit 1 ; \ + fi chflags noschg /kernel mv /kernel /kernel.old if [ `sysctl -n kern.bootfile` = /kernel ] ; then \