NetBSD/distrib/hpcmips/Makefile

40 lines
989 B
Makefile

# $NetBSD: Makefile,v 1.3 2000/08/30 23:51:49 jhawk Exp $
.include "../Makefile.inc"
.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.kernobj.mk>
SUBDIR=
ITARGET= ${RELEASEDIR}/installation
IINST= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE}
PBSDBOOTDIR = ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot
PBSDBOOT = ${PBSDBOOTDIR}/pbsdboot.exe
PBSDBOOT1 = ${PBSDBOOTDIR}/pbsdboot1.exe
.ifndef RELEASEDIR
release:
@echo setenv RELEASEDIR first
@false
.else
MINIROOTDIR = ${.CURDIR}/../miniroot
MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir
release:
rm -f netbsd netbsd.gz
cp ${KERNOBJDIR}/RAMDISK/netbsd .
mdsetimage netbsd ${MINIROOTOBJ}/miniroot.fs
gzip -9 netbsd
${IINST} netbsd.gz ${ITARGET}/.
cd ${KERNSRCDIR}/arch/${MACHINE}/stand/pbsdboot; ${MAKE}
${IINST} ${PBSDBOOT} ${ITARGET}/.
${IINST} ${PBSDBOOT1} ${ITARGET}/.
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz' '*.exe'
.endif
.include <bsd.subdir.mk>