1998-06-28 13:38:40 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.11 1998/06/28 09:38:43 fair Exp $
|
1994-04-12 11:48:20 +04:00
|
|
|
#
|
|
|
|
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
|
|
|
.ifdef DESTDIR
|
|
|
|
|
1998-06-24 12:15:47 +04:00
|
|
|
# the regular expression does a basename(1) on .CURDIR so that we don't
|
|
|
|
# have to keep looking up .. at compile time.
|
1994-04-18 14:48:48 +04:00
|
|
|
|
1998-06-24 12:15:47 +04:00
|
|
|
KERNSRCDIR?= ${.CURDIR:C/[^\/]+$//}sys
|
|
|
|
KERNOBJDIR?= ${KERNSRCDIR}/arch/${MACHINE}/compile
|
|
|
|
KERNCONFDIR?= ${KERNSRCDIR}/arch/${MACHINE}/conf
|
|
|
|
|
|
|
|
snap_md:
|
|
|
|
.for kernel in GENERIC GENERIC_SCSI3
|
|
|
|
cd ${KERNCONFDIR} && config \
|
|
|
|
-b ${KERNOBJDIR}/${kernel} \
|
|
|
|
-s ${KERNSRCDIR} \
|
|
|
|
${kernel}
|
1998-06-28 13:38:40 +04:00
|
|
|
cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make && \
|
|
|
|
cp netbsd ${DESTDIR}/snapshot/netbsd.${kernel}
|
1998-06-24 12:15:47 +04:00
|
|
|
.endfor
|
1994-08-12 05:19:31 +04:00
|
|
|
|
1994-04-12 11:48:20 +04:00
|
|
|
.endif # DESTDIR check
|