4d6ad24166
Provide a default value for $MDSETIMAGE and pull in bsd.own.mk to have it overriden as needed for cross/-current builds.
34 lines
737 B
Makefile
34 lines
737 B
Makefile
# $NetBSD: Makefile,v 1.2 2001/10/21 23:23:22 jmc 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}
|
|
|
|
.ifndef RELEASEDIR
|
|
release:
|
|
@echo setenv RELEASEDIR first
|
|
@false
|
|
.else
|
|
MINIROOTDIR = ${.CURDIR}/../miniroot
|
|
MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir
|
|
MDSETIMAGE?= mdsetimage
|
|
|
|
release:
|
|
rm -f netbsd netbsd.gz
|
|
cp ${KERNOBJDIR}/RAMDISK/netbsd .
|
|
${MDSETIMAGE} netbsd ${MINIROOTOBJ}/miniroot.fs
|
|
gzip -9 netbsd
|
|
${IINST} netbsd.gz ${ITARGET}/.
|
|
${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz'
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|