NetBSD/distrib/hpcmips/Makefile

51 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2002/04/10 05:00:47 shin Exp $
.include "../Makefile.inc"
.include <bsd.obj.mk>
.include <bsd.kernobj.mk>
.include <bsd.own.mk>
SUBDIR=
ITARGET= ${RELEASEDIR}/installation
IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}
PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.uu
PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.uu
2002-03-23 06:21:23 +03:00
HPCBOOTDIR = ${KERNSRCDIR}/arch/hpc/stand
HPCBOOT = ${HPCBOOTDIR}/binary/MIPS/hpcboot.exe.uu
MDSETIMAGE?= mdsetimage
2002-03-23 06:21:23 +03:00
INSTKERNELS = TX3912
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
MINIROOTDIR = ${.CURDIR}/../miniroot
2001-11-14 03:41:52 +03:00
MINIROOTOBJ != cd ${MINIROOTDIR} && ${PRINTOBJDIR}
release:
rm -f netbsd netbsd.gz
cp ${KERNOBJDIR}/RAMDISK/netbsd .
${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
gzip -9 netbsd
${IINST} netbsd.gz ${ITARGET}/.
.for instkern in ${INSTKERNELS}
rm -f netbsd netbsd.gz
cp ${KERNOBJDIR}/INSTALL_${instkern}/netbsd .
2002-02-18 06:38:01 +03:00
${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
gzip -9 netbsd
${IINST} netbsd.gz ${ITARGET}/netbsd.${instkern}.gz
.endfor
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT1}; chmod ${NONBINMODE} pbsdboot1.exe)
(cd ${ITARGET}; ${UUDECODE} ${PBSDBOOT}; chmod ${NONBINMODE} pbsdboot.exe)
(cd ${ITARGET}; rm -f hpcboot.exe; ${UUDECODE} -p ${HPCBOOT} >hpcboot.exe ; chmod ${NONBINMODE} hpcboot.exe)
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe'
.endif
.include <bsd.subdir.mk>