NetBSD/distrib/prep/floppies/kernel-ramdisk/Makefile

40 lines
818 B
Makefile

# $NetBSD: Makefile,v 1.2 2001/10/21 23:23:22 jmc Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk>
.include <bsd.own.mk>
.include <bsd.subdir.mk>
KERN= ${KERNOBJDIR}/INSTALL/netbsd
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
KERNEL= netbsd.INSTALL.gz
MDSETIMAGE?= mdsetimage
CLEANFILES+= ${KERNEL} netbsd.tmp netbsd.tmp.gz
all: ${KERNEL}
${KERNEL}: ${KERN} ${RAMDISK}
cp ${KERN} netbsd.tmp
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
.ifndef RELEASEDIR
release:
@echo set RELEASEDIR first!
@false
.else
release:
-mkdir -p ${RELEASEDIR}/binary/kernel
cp -p ${KERNEL} ${RELEASEDIR}/binary/kernel
.endif
clean cleandir distclean:
rm -f *.core ${CLEANFILES}
.include <bsd.obj.mk>