Makefile revision 1.12
1# $NetBSD: Makefile,v 1.12 2002/04/11 06:39:04 lukem Exp $ 2 3.include <bsd.own.mk> 4.include "${_SRC_TOP_}/distrib/Makefile.inc" 5 6.include <bsd.kernobj.mk> 7 8ITARGET= ${RELEASEDIR}/installation 9 10PBSDBOOTDIR= ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot 11PBSDBOOT= ${PBSDBOOTDIR}/pbsdboot.uu 12PBSDBOOT1= ${PBSDBOOTDIR}/pbsdboot1.uu 13HPCBOOTDIR= ${KERNSRCDIR}/arch/hpc/stand 14HPCBOOT= ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu 15 16MINIROOTOBJ!= cd ${.CURDIR}/../miniroot && ${PRINTOBJDIR} 17 18# TARGETS is a list of kernel directories and generated images: 19# Kernel Image 20# 21TARGETS= RAMDISK netbsd \ 22 INSTALL_TX3912 netbsd.TX3912 23 24.for K I in ${TARGETS} # { 25IMAGES+= ${I}.gz 26${I}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${MINIROOTOBJ}/miniroot.fs 27 cp ${KERNOBJDIR}/${K}/netbsd.tmp . 28 ${MDSETIMAGE} netbsd.tmp ${MINIROOTOBJ}/miniroot.fs 29 gzip -9 netbsd.tmp 30 mv netbsd.tmp.gz ${.TARGET} 31.endfor # } 32 33CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${IMAGES} 34 35# do the work 36# 37realall: ${IMAGES} 38 39release: check_RELEASEDIR .WAIT ${IMAGES} 40.for img in ${IMAGES} 41 ${RELINST} ${img} ${ITARGET}/. 42.endfor 43 (cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT1}; \ 44 chmod ${NONBINMODE} pbsdboot1.exe) 45 (cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT}; \ 46 chmod ${NONBINMODE} pbsdboot.exe) 47 (cd ${ITARGET}; rm -f hpcboot.exe; \ 48 ${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; \ 49 chmod ${NONBINMODE} hpcboot.exe) 50 ${MAKESUMS} -t ${ITARGET} '*.gz' '*.exe' 51 52.include <bsd.prog.mk> 53