add phony targets to build gzimg files for specified kernels, instead

of building all gzimg files in TARGETS.
This commit is contained in:
bsh 2012-04-04 07:32:29 +00:00
parent 76f4f39125
commit 0e9f71e12b

View File

@ -1,10 +1,16 @@
# $NetBSD: Makefile,v 1.21 2009/04/03 22:36:35 perry Exp $
# $NetBSD: Makefile,v 1.22 2012/04/04 07:32:29 bsh Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
#
# `make' or `make all' builds all gzimg files defined in ${TARGETS}.
# `make _KERNELNAME_' builds all gzimg files for specified kernels.
#
# TARGETS is a list of:
# KERNEL_name GZBOOT_name GZIMG_name
@ -75,8 +81,17 @@ gzimg_${I}_flash_${R}.gz: .NOTMAIN gzimg_${I}_flash_${R}
CLEANFILES+= gzimg_${I}_flash_${R}.kern gzimg_${I}_flash_${R}.kern.gz \
gzimg_${I}_flash_${R}
.if empty(GZKERNELS:M${K})
GZKERNELS+= $K
.endif
KZ${K}+= gzimg_${I}_flash_${R}.gz
.endfor # }
.for K in ${GZKERNELS}
${K}: .PHONY ${KZ${K}}
.endfor
CLEANFILES+= ${GZIMGS}