NetBSD/etc/etc.sun3/Makefile.inc

29 lines
732 B
Makefile

# $NetBSD: Makefile.inc,v 1.7 1998/10/09 10:41:38 itohy Exp $
#
# etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets
#
BIN3+= etc.sun3/ttyaction
.ifdef DESTDIR
# 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 GENERIC3X
cd ${KERNCONFDIR} && config \
-b ${KERNOBJDIR}/${kernel} \
-s ${KERNSRCDIR} \
${kernel}
cd ${KERNOBJDIR}/${kernel} && \
${MAKE} clean && ${MAKE} depend && ${MAKE} && \
cp netbsd ${DESTDIR}/snapshot/netbsd.${kernel}
.endfor
.endif # DESTDIR check