1998-10-09 14:40:59 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.4 1998/10/09 10:41:16 itohy Exp $
|
1996-02-02 19:10:13 +03:00
|
|
|
#
|
|
|
|
# etc.arm32/Makefile.inc -- arm32-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
|
|
|
.ifdef DESTDIR
|
|
|
|
|
1998-06-28 13:38:40 +04:00
|
|
|
# the regular expression does a basename(1) on .CURDIR so that we don't
|
|
|
|
# have to keep looking up .. at compile time.
|
|
|
|
|
|
|
|
KERNSRCDIR?= ${.CURDIR:C/[^\/]+$//}sys
|
|
|
|
KERNOBJDIR?= ${KERNSRCDIR}/arch/${MACHINE}/compile
|
|
|
|
KERNCONFDIR?= ${KERNSRCDIR}/arch/${MACHINE}/conf
|
|
|
|
|
|
|
|
snap_md:
|
|
|
|
.for kernel in GENERIC
|
|
|
|
cd ${KERNCONFDIR} && config \
|
|
|
|
-b ${KERNOBJDIR}/${kernel} \
|
|
|
|
-s ${KERNSRCDIR} \
|
|
|
|
${kernel}
|
1998-10-09 14:40:59 +04:00
|
|
|
cd ${KERNOBJDIR}/${kernel} && \
|
|
|
|
${MAKE} clean && ${MAKE} depend && ${MAKE} && \
|
1998-06-28 13:38:40 +04:00
|
|
|
cp netbsd ${DESTDIR}/snapshot/netbsd.${kernel}
|
|
|
|
.endfor
|
1996-02-02 19:10:13 +03:00
|
|
|
|
|
|
|
.endif # DESTDIR check
|