2002-04-10 22:56:37 +04:00
|
|
|
# $NetBSD: Makefile,v 1.2 2002/04/10 18:56:37 scw Exp $
|
2002-03-24 21:08:18 +03:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
|
|
|
|
CLEANFILES= netbsd.tmp
|
|
|
|
|
|
|
|
RAMDISKS= RAMDISK ramdisk
|
|
|
|
|
|
|
|
.for V F in ${RAMDISKS}
|
|
|
|
${V}DIR!= cd ${.CURDIR}/../${F} && ${PRINTOBJDIR}
|
|
|
|
${V}= ${${V}DIR}/${F}.fs
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# create netbsd.*.gz targets
|
|
|
|
#
|
|
|
|
# TARGETS is a list of:
|
|
|
|
# KERNEL_name fs-image
|
|
|
|
#
|
|
|
|
TARGETS= RAMDISK ${RAMDISK}
|
|
|
|
|
|
|
|
.for K R in ${TARGETS}
|
|
|
|
KERNELS+= netbsd.${K}.gz
|
2002-04-10 22:56:37 +04:00
|
|
|
CLEANFILES+= netbsd.${K}.gz
|
2002-03-24 21:08:18 +03:00
|
|
|
netbsd.${K}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${R}
|
|
|
|
@echo "Populating ${.TARGET} with ${R}"
|
|
|
|
cp ${KERNOBJDIR}/${K}/netbsd netbsd.tmp
|
|
|
|
${MDSETIMAGE} -v netbsd.tmp ${R}
|
|
|
|
${STRIP} netbsd.tmp
|
|
|
|
gzip -9 netbsd.tmp
|
|
|
|
mv netbsd.tmp.gz ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# do the work
|
|
|
|
#
|
|
|
|
all: ${KERNELS}
|
|
|
|
|
|
|
|
release:
|
|
|
|
-mkdir -p ${RELEASEDIR}/installation/tapeimage
|
2002-04-10 22:56:37 +04:00
|
|
|
cp -p ${KERNELS} ${RELEASEDIR}/installation/tapeimage
|
2002-03-24 21:08:18 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|