diff options
| author | KATO Takenori <kato@FreeBSD.org> | 1998-01-31 13:45:28 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 1998-01-31 13:45:28 +0000 |
| commit | f84d885c42b55931b58de3086bc59c7d8906856d (patch) | |
| tree | f6a6830b60ed6a390dc47eec1e5f7dfc230d6450 | |
| parent | eaf13dd73a6fe8d8d8555e4701e376dfbeedecc1 (diff) | |
Notes
| -rw-r--r-- | sys/conf/Makefile.pc98 | 17 | ||||
| -rw-r--r-- | sys/pc98/conf/Makefile.pc98 | 17 |
2 files changed, 22 insertions, 12 deletions
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98 index 33f831d14096..edb7f6c5eee3 100644 --- a/sys/conf/Makefile.pc98 +++ b/sys/conf/Makefile.pc98 @@ -3,7 +3,7 @@ # Makefile.i386 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.pc98,v 1.24 1997/11/06 09:51:34 kato Exp $ +# $Id: Makefile.pc98,v 1.25 1997/12/20 02:37:55 kato Exp $ # # Makefile for FreeBSD # @@ -187,6 +187,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 @@ -203,16 +206,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 ${PC98}/pc98/pc98.h ${I386}/isa/icu.h diff --git a/sys/pc98/conf/Makefile.pc98 b/sys/pc98/conf/Makefile.pc98 index 33f831d14096..edb7f6c5eee3 100644 --- a/sys/pc98/conf/Makefile.pc98 +++ b/sys/pc98/conf/Makefile.pc98 @@ -3,7 +3,7 @@ # Makefile.i386 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.pc98,v 1.24 1997/11/06 09:51:34 kato Exp $ +# $Id: Makefile.pc98,v 1.25 1997/12/20 02:37:55 kato Exp $ # # Makefile for FreeBSD # @@ -187,6 +187,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 @@ -203,16 +206,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 ${PC98}/pc98/pc98.h ${I386}/isa/icu.h |
