Makefile.inc revision 1.9
1#	$NetBSD: Makefile.inc,v 1.9 2002/01/27 07:03:04 lukem Exp $
2#
3#	mac68k-specific release building goo
4#
5
6# You will find no configs for GENERICSBC or INSTALLSBC in the
7# sources. That's because they're trivial to generate--each is
8# simply its corresponding config with "ncrscsi" commented out,
9# and "sbc" uncommented.
10#
11
12KERNEL_SETS=		GENERIC GENERICSBC
13
14BUILD_KERNELS=		INSTALL INSTALLSBC
15
16INSTALLATION_DIRS+=	installation/instkernel
17
18snap_md_post:
19.ifndef UPDATE
20	cd ${.CURDIR}/../distrib/mac68k/instkernel/ramdisk && ${MAKE} ${MAKEFLAGS} clean
21.endif
22	cd ${.CURDIR}/../distrib/mac68k/instkernel/ramdisk && ${MAKE} ${MAKEFLAGS}
23.ifndef UPDATE
24	cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && ${MAKE} ${MAKEFLAGS} clean
25.endif
26.for k in ${BUILD_KERNELS}
27.ifndef UPDATE
28	cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && \
29		${MAKE} clean
30.endif
31	cd ${.CURDIR}/../distrib/mac68k/instkernel/instkernel && \
32		${MAKE} ${MAKEFLAGS} INSTALL_KERNEL=${k} && \
33		${MAKE} ${MAKEFLAGS} INSTALL_KERNEL=${k} release
34.endfor
35	cd ${KERNOBJDIR}/GENERICSBC &&	\
36		GZIP=-9 ${PAX} -zwf	\
37		    ${RELEASEDIR}/binary/sets/kern_sbc.tgz netbsd
38.ifndef UPDATE
39	cd ${.CURDIR}/../distrib/notes && ${MAKE} clean
40.endif
41	cd ${.CURDIR}/../distrib/notes && \
42		${MAKE} ${MAKEFLAGS} && \
43		${MAKE} ${MAKEFLAGS} release
44	sh ../distrib/sets/makesums -t ${RELEASEDIR}/installation/instkernel
45