Makefile.inc revision 1.4
1# 2# $NetBSD: Makefile.inc,v 1.4 1998/10/09 10:41:24 itohy 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} && \ 23 ${MAKE} clean && ${MAKE} depend && ${MAKE} && \ 24 gzip -c -9 netbsd > ${DESTDIR}/snapshot/netbsd.${kernel}.gz 25.endfor 26 27.endif # DESTDIR check 28