NetBSD/distrib/mvme68k/instkernel/Makefile

44 lines
914 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 2002/04/10 18:56:37 scw Exp $
.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
CLEANFILES+= netbsd.${K}.gz
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
cp -p ${KERNELS} ${RELEASEDIR}/installation/tapeimage
.include <bsd.prog.mk>