NetBSD/distrib/pmax/ramdisk/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

2002-03-30 02:45:23 +03:00
# $NetBSD: Makefile,v 1.22 2002/03/29 23:45:23 lukem Exp $
.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.own.mk>
DISKIMAGE= diskimage.tgz
IMAGE= ramdisk.fs
IMAGESIZE= 6144b
WARNS= 1
CRUNCHBIN= ramdiskbin
LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN= le
MAKEDEVTARGETS= minimal pty0
IMAGEDEPENDS= ${CRUNCHBIN} \
2002-03-25 02:15:24 +03:00
disktab.preinstall dot.hdprofile dot.profile \
${CURDIR}/../miniroot/termcap.rcons \
2002-03-25 02:15:24 +03:00
${DESTDIR}/usr/mdec/boot.pmax ${DESTDIR}/usr/mdec/bootxx_ffs \
${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
2002-03-28 06:24:07 +03:00
${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
${_SRC_TOP_}/etc/services
2002-03-30 02:45:23 +03:00
# Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o
${DISKIMAGE}: ${WORKBUILT} ${WORKSPEC}
( cd ${WORKDIR}; \
GZIP=-9 ${PAX} -w -d -z -N ${DESTDIR}/etc -M < ${WORKSPEC} \
) > ${.TARGET}.tmp \
&& mv ${.TARGET}.tmp ${.TARGET}
CLEANFILES+= ${DISKIMAGE} ${DISKIMAGE}.tmp
2002-03-25 02:15:24 +03:00
realall: ${IMAGE} .WAIT ${DISKIMAGE}
release: check_RELEASEDIR .WAIT ${DISKIMAGE}
-mkdir -p ${RELEASEDIR}/installation/netboot
cp -p ${DISKIMAGE} ${RELEASEDIR}/installation/netboot
.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
.include <bsd.prog.mk>