1998-10-09 10:40:59 +00:00
|
|
|
# $NetBSD: Makefile.inc,v 1.7 1998/10/09 10:41:38 itohy Exp $
|
1995-07-07 16:05:20 +00:00
|
|
|
#
|
|
|
|
# etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
1997-12-20 01:56:51 +00:00
|
|
|
BIN3+= etc.sun3/ttyaction
|
|
|
|
|
1995-07-07 16:05:20 +00:00
|
|
|
.ifdef DESTDIR
|
|
|
|
|
1998-06-25 17:54:05 +00:00
|
|
|
# the regular expression does a basename(1) on .CURDIR so that we don't
|
|
|
|
# have to keep looking up .. at compile time.
|
1995-07-07 16:05:20 +00:00
|
|
|
|
1998-06-25 17:54:05 +00:00
|
|
|
KERNSRCDIR?= ${.CURDIR:C/[^\/]+$//}sys
|
|
|
|
KERNOBJDIR?= ${KERNSRCDIR}/arch/${MACHINE}/compile
|
|
|
|
KERNCONFDIR?= ${KERNSRCDIR}/arch/${MACHINE}/conf
|
|
|
|
|
1998-06-28 09:38:40 +00:00
|
|
|
snap_md:
|
1998-06-25 17:54:05 +00:00
|
|
|
.for kernel in GENERIC GENERIC3X
|
|
|
|
cd ${KERNCONFDIR} && config \
|
|
|
|
-b ${KERNOBJDIR}/${kernel} \
|
|
|
|
-s ${KERNSRCDIR} \
|
|
|
|
${kernel}
|
1998-10-09 10:40:59 +00:00
|
|
|
cd ${KERNOBJDIR}/${kernel} && \
|
|
|
|
${MAKE} clean && ${MAKE} depend && ${MAKE} && \
|
1998-06-28 09:38:40 +00:00
|
|
|
cp netbsd ${DESTDIR}/snapshot/netbsd.${kernel}
|
1998-06-25 17:54:05 +00:00
|
|
|
.endfor
|
1995-07-07 16:05:20 +00:00
|
|
|
|
|
|
|
.endif # DESTDIR check
|