Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/evbarm/gzboot/gzimg add phony targets to build gzimg...
details: https://anonhg.NetBSD.org/src/rev/b82336949272
branches: trunk
changeset: 778549:b82336949272
user: bsh <bsh%NetBSD.org@localhost>
date: Wed Apr 04 07:32:29 2012 +0000
description:
add phony targets to build gzimg files for specified kernels, instead
of building all gzimg files in TARGETS.
diffstat:
distrib/evbarm/gzboot/gzimg/Makefile | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r feb2d41b2408 -r b82336949272 distrib/evbarm/gzboot/gzimg/Makefile
--- a/distrib/evbarm/gzboot/gzimg/Makefile Wed Apr 04 06:29:16 2012 +0000
+++ b/distrib/evbarm/gzboot/gzimg/Makefile Wed Apr 04 07:32:29 2012 +0000
@@ -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 @@
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}
Home |
Main Index |
Thread Index |
Old Index