NetBSD/distrib/pmax/instkernel/Makefile

47 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.28 2002/04/26 15:50:43 lukem Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
.include <bsd.kernobj.mk>
IMAGE= diskimage
IMAGESIZE= 2m
LISTS= ${.CURDIR}/list
IMAGEENDIAN= le
IMAGEDEPENDS= install.gz ${DESTDIR}/usr/mdec/boot
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= RAMDISK ${RAMDISK} install
MDSET.install.suffixes= ecoff
MDSET.install.post= ${ELF2ECOFF} netbsd.tmp netbsd.ecoff && \
gzip -9f netbsd.ecoff
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs
${IMAGE}.gz: ${IMAGE} ${PRIMARYBOOT}
${INSTALLBOOT} -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT}
gzip -9f ${IMAGE}
CLEANFILES+= ${IMAGE}.gz
realall: ${KERNELDEPS} ${IMAGE}.gz
DISKBINDIR= ${RELEASEDIR}/installation/diskimage
KERNBINDIR= ${RELEASEDIR}/binary/kernel
release: check_RELEASEDIR .WAIT ${IMAGE}.gz ${KERNELDEPS}
-mkdir -p ${DISKBINDIR} ${KERNBINDIR}
${RELINSTALL} ${IMAGE}.gz ${DISKBINDIR}
${RELINSTALL} ${KERNELS} ${KERNBINDIR}
.include "${DISTRIBDIR}/common/Makefile.image"
.include "${DISTRIBDIR}/common/Makefile.mdset"
.include <bsd.prog.mk>