Makefile revision 1.10
1# $NetBSD: Makefile,v 1.10 2002/03/23 03:21:23 shin Exp $ 2 3.include "../Makefile.inc" 4 5.include <bsd.obj.mk> 6.include <bsd.kernobj.mk> 7.include <bsd.own.mk> 8 9SUBDIR= 10 11ITARGET= ${RELEASEDIR}/installation 12IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} 13 14PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot 15PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe 16PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe 17HPCBOOTDIR = ${KERNSRCDIR}/arch/hpc/stand 18HPCBOOT = ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe 19MDSETIMAGE?= mdsetimage 20 21INSTKERNELS = TX3912 22 23.ifndef RELEASEDIR 24release: 25 @echo setenv RELEASEDIR first 26 @false 27.else 28MINIROOTDIR = ${.CURDIR}/../miniroot 29MINIROOTOBJ != cd ${MINIROOTDIR} && ${PRINTOBJDIR} 30 31release: 32 rm -f netbsd netbsd.gz 33 cp ${KERNOBJDIR}/RAMDISK/netbsd . 34 ${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs 35 gzip -9 netbsd 36 ${IINST} netbsd.gz ${ITARGET}/. 37.for instkern in ${INSTKERNELS} 38 rm -f netbsd netbsd.gz 39 cp ${KERNOBJDIR}/INSTALL_${instkern}/netbsd . 40 ${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs 41 gzip -9 netbsd 42 ${IINST} netbsd.gz ${ITARGET}/netbsd.${instkern}.gz 43.endfor 44 cd ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot; make 45 ${IINST} ${PBSDBOOT} ${ITARGET}/. 46 ${IINST} ${PBSDBOOT1} ${ITARGET}/. 47 cd ${KERNSRCDIR}/arch/hpc/stand; make 48 ${IINST} ${HPCBOOT} ${ITARGET}/. 49 ${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe' 50.endif 51 52.include <bsd.subdir.mk> 53