Sync usage with man page.
[netbsd-mini2440.git] / distrib / i386 / kmod / Makefile
blob918ea6b237283fd3112f3f384a542fe9250cbb19
1 # $NetBSD: Makefile,v 1.9 2009/01/24 22:14:44 rmind Exp $
3 .include <bsd.own.mk>
4 .include "../../common/Makefile.distrib"
6 MKMAN= no
7 PROG= miniroot.kmod
9 SRCMOD= ${DESTDIR}/stand/${MACHINE}/${DISTRIBVER}/modules/miniroot/miniroot.kmod
10 DSTMOD= ${.OBJDIR}/miniroot.kmod
11 RAMDISK= ramdisk-big
12 RAMDISKDIR!= cd ${.CURDIR}/../ramdisks/${RAMDISK} && ${PRINTOBJDIR}
13 RAMDISKFS= ${RAMDISKDIR}/${RAMDISK}.fs
15 miniroot.kmod: ${RAMDISKFS} ${SRCMOD}
16 ${OBJCOPY} --add-section miniroot=${RAMDISKFS} \
17 --set-section-flags miniroot=alloc,contents,load,data \
18 ${SRCMOD} ${DSTMOD}.tmp
19 gzip -9nc < ${DSTMOD}.tmp > ${DSTMOD}
20 rm -f ${DSTMOD}.tmp
22 .include <bsd.prog.mk>
24 release: miniroot.kmod
25 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
26 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/miniroot/