Makefile revision 1.12
11.12Slukem#	$NetBSD: Makefile,v 1.12 2002/04/11 06:39:04 lukem Exp $
21.2Sshin
31.12Slukem.include <bsd.own.mk>
41.12Slukem.include "${_SRC_TOP_}/distrib/Makefile.inc"
51.2Sshin
61.2Sshin.include <bsd.kernobj.mk>
71.2Sshin
81.2SshinITARGET=	${RELEASEDIR}/installation
91.2Sshin
101.12SlukemPBSDBOOTDIR=	${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
111.12SlukemPBSDBOOT=	${PBSDBOOTDIR}/pbsdboot.uu
121.12SlukemPBSDBOOT1=	${PBSDBOOTDIR}/pbsdboot1.uu
131.12SlukemHPCBOOTDIR=	${KERNSRCDIR}/arch/hpc/stand
141.12SlukemHPCBOOT=	${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu
151.12Slukem
161.12SlukemMINIROOTOBJ!=	cd ${.CURDIR}/../miniroot && ${PRINTOBJDIR}
171.12Slukem
181.12Slukem#	TARGETS is a list of kernel directories and generated images:
191.12Slukem#		Kernel			Image
201.12Slukem#
211.12SlukemTARGETS=	RAMDISK			netbsd		\
221.12Slukem		INSTALL_TX3912		netbsd.TX3912
231.12Slukem
241.12Slukem.for K I in ${TARGETS}					# {
251.12SlukemIMAGES+=	${I}.gz
261.12Slukem${I}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${MINIROOTOBJ}/miniroot.fs
271.12Slukem	cp ${KERNOBJDIR}/${K}/netbsd.tmp .
281.12Slukem	${MDSETIMAGE} netbsd.tmp ${MINIROOTOBJ}/miniroot.fs
291.12Slukem	gzip -9 netbsd.tmp
301.12Slukem	mv netbsd.tmp.gz ${.TARGET}
311.12Slukem.endfor							# }
321.12Slukem
331.12SlukemCLEANFILES+=	netbsd.tmp netbsd.tmp.gz ${IMAGES}
341.12Slukem
351.12Slukem#	do the work
361.12Slukem#
371.12Slukemrealall: ${IMAGES}
381.12Slukem
391.12Slukemrelease: check_RELEASEDIR .WAIT ${IMAGES}
401.12Slukem.for img in ${IMAGES}
411.12Slukem	${RELINST} ${img} ${ITARGET}/.
421.4Sshin.endfor
431.12Slukem	(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT1}; \
441.12Slukem	    chmod ${NONBINMODE} pbsdboot1.exe)
451.12Slukem	(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT}; \
461.12Slukem	    chmod ${NONBINMODE} pbsdboot.exe)
471.12Slukem	(cd ${ITARGET}; rm -f hpcboot.exe; \
481.12Slukem	    ${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; \
491.12Slukem	    chmod ${NONBINMODE} hpcboot.exe)
501.12Slukem	${MAKESUMS} -t ${ITARGET} '*.gz' '*.exe'
511.1Stakemura
521.12Slukem.include <bsd.prog.mk>
53