summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2004-09-15 16:59:31 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2004-09-15 16:59:31 +0000
commit6d58e84b70ec736919c71f016be84af4ca4ade40 (patch)
tree0c73fcf5c613a936937091a11fbe5cffb49c4e29 /sys/arch
parent6755b348c6ef20113c62ea7542b6897c98c11556 (diff)
Add an install: target. Ok miod@, pefo@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/conf/Makefile.sgi14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi
index 72ea3cad98f..5f25273f2f3 100644
--- a/sys/arch/sgi/conf/Makefile.sgi
+++ b/sys/arch/sgi/conf/Makefile.sgi
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sgi,v 1.5 2004/09/09 22:11:39 pefo Exp $
+# $OpenBSD: Makefile.sgi,v 1.6 2004/09/15 16:59:30 matthieu Exp $
# Makefile for OpenBSD
#
@@ -183,5 +183,17 @@ depend:: .depend
mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
# mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES