Makefile.inc revision 1.3
1#
2#	$NetBSD: Makefile.inc,v 1.3 1998/06/28 09:38:42 fair Exp $
3#
4#	etc.atari/Makefile.inc -- atari-specific etc Makefile targets
5#
6
7.ifdef DESTDIR
8
9# the regular expression does a basename(1) on .CURDIR so that we don't
10# have to keep looking up .. at compile time.
11
12KERNSRCDIR?=	${.CURDIR:C/[^\/]+$//}sys
13KERNOBJDIR?=	${KERNSRCDIR}/arch/${MACHINE}/compile
14KERNCONFDIR?=	${KERNSRCDIR}/arch/${MACHINE}/conf
15
16snap_md:
17.for kernel in GENERIC ATARITT BOOT BOOTX HADES
18	cd ${KERNCONFDIR} && config \
19		-b ${KERNOBJDIR}/${kernel} \
20		-s ${KERNSRCDIR} \
21		${kernel}
22	cd ${KERNOBJDIR}/${kernel} && make clean && make depend && make && \
23		gzip -c -9 netbsd > ${DESTDIR}/snapshot/netbsd.${kernel}.gz
24.endfor
25
26.endif	# DESTDIR check
27