summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-01-31 04:23:15 +0000
committereivind <eivind@FreeBSD.org>1998-01-31 04:23:15 +0000
commitb86c02062a835227f284ae647267e92fa86caa5d (patch)
tree5f440af542ab6c56f655bd286aca1ab3888a96e6 /sys/conf
parentd7f1eb59ae1e80d3d1550e5f959bdd3ce475b5b6 (diff)
downloadFreeBSD-src-b86c02062a835227f284ae647267e92fa86caa5d.zip
FreeBSD-src-b86c02062a835227f284ae647267e92fa86caa5d.tar.gz
Add support for cleandepend, ${DESTDIR}, and there not being a file named
${DESTDIR}/kernel.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/Makefile.i38617
-rw-r--r--sys/conf/Makefile.powerpc17
2 files changed, 22 insertions, 12 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 6292ba0..81c41ec 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.105 1997/11/06 03:11:30 msmith Exp $
+# $Id: Makefile.i386,v 1.106 1997/12/18 21:03:04 bde Exp $
#
# Makefile for FreeBSD
#
@@ -183,6 +183,9 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND}
rm -f .depend
mv -f .newdep .depend
+cleandepend:
+ rm -f .depend
+
links:
egrep '#if' ${CFILES:Nswapkernel.c} | sed -f $S/conf/defines | \
sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
@@ -199,16 +202,18 @@ install:
echo "You must first build your kernel before trying to install." ; \
exit 1 ; \
fi
- chflags noschg /kernel
- mv /kernel /kernel.old
+.if exists(${DESTDIR}/kernel)
+ chflags noschg ${DESTDIR}/kernel
+ mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
+.endif
PATH=$${PATH}:/sbin:/usr/sbin; \
- if [ `sysctl -n kern.bootfile` = /kernel ] ; then \
- sysctl -w kern.bootfile=/kernel.old ; \
+ if [ `sysctl -n kern.bootfile` = ${DESTDIR}/kernel ] ; then \
+ sysctl -w kern.bootfile=${DESTDIR}/kernel.old ; \
if [ -f /var/db/kvm_kernel.db ] ; then \
mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ; \
fi \
fi
- install -c -m 555 -o root -g wheel -fschg kernel /
+ install -c -m 555 -o root -g wheel -fschg kernel ${DESTDIR}/
ioconf.o: ioconf.c $S/sys/param.h $S/sys/buf.h \
${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 6292ba0..81c41ec 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.105 1997/11/06 03:11:30 msmith Exp $
+# $Id: Makefile.i386,v 1.106 1997/12/18 21:03:04 bde Exp $
#
# Makefile for FreeBSD
#
@@ -183,6 +183,9 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND}
rm -f .depend
mv -f .newdep .depend
+cleandepend:
+ rm -f .depend
+
links:
egrep '#if' ${CFILES:Nswapkernel.c} | sed -f $S/conf/defines | \
sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
@@ -199,16 +202,18 @@ install:
echo "You must first build your kernel before trying to install." ; \
exit 1 ; \
fi
- chflags noschg /kernel
- mv /kernel /kernel.old
+.if exists(${DESTDIR}/kernel)
+ chflags noschg ${DESTDIR}/kernel
+ mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
+.endif
PATH=$${PATH}:/sbin:/usr/sbin; \
- if [ `sysctl -n kern.bootfile` = /kernel ] ; then \
- sysctl -w kern.bootfile=/kernel.old ; \
+ if [ `sysctl -n kern.bootfile` = ${DESTDIR}/kernel ] ; then \
+ sysctl -w kern.bootfile=${DESTDIR}/kernel.old ; \
if [ -f /var/db/kvm_kernel.db ] ; then \
mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ; \
fi \
fi
- install -c -m 555 -o root -g wheel -fschg kernel /
+ install -c -m 555 -o root -g wheel -fschg kernel ${DESTDIR}/
ioconf.o: ioconf.c $S/sys/param.h $S/sys/buf.h \
${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
OpenPOWER on IntegriCloud