Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/distrib/common/Makefile.mdset,v rcsdiff: /ftp/cvs/cvsroot/src/distrib/common/Makefile.mdset,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.35 retrieving revision 1.35.12.1 diff -u -p -r1.35 -r1.35.12.1 --- src/distrib/common/Makefile.mdset 2011/01/01 16:56:18 1.35 +++ src/distrib/common/Makefile.mdset 2013/02/25 00:24:27 1.35.12.1 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mdset,v 1.35 2011/01/01 16:56:18 jym Exp $ +# $NetBSD: Makefile.mdset,v 1.35.12.1 2013/02/25 00:24:27 tls Exp $ # # Makefile snippet to ${TOOL_MDSETIMAGE} file system images into kernels # @@ -69,7 +69,12 @@ _MAKEFILE_MDSET_=1 .include +# The default is to build for all MDSETTARGETS +ALL_KERNELS?= + + .for _K _I _F in ${MDSETTARGETS} # { +.for currentsel in ${ALL_KERNELS} # { +.if ${currentsel} == "+" || ${_K} == ${currentsel} _KERNEL:=${_K} # (work around obscure issue in make(1)) .if (${_KERNEL:M*/*} != "") @@ -166,6 +171,8 @@ ${_KERNEL.${_K}.${_F}}.gz: ${_KERNEL.${_ gzip -9nc ${.ALLSRC} > ${.TARGET} .endif # } +.endif +.endfor # } .endfor # } CLEANFILES+= ${KERNELS} ${KERNELSYMS} @@ -174,6 +181,7 @@ realall: ${KERNELS} .if defined(MDSET_RELEASEDIR) release:: check_RELEASEDIR .WAIT ${KERNELS} + test -z "${KERNELS}" || \ ${RELEASE_INSTALL} ${KERNELS} ${KERNELSYMS} \ ${RELEASEDIR}/${RELEASEMACHINEDIR}/${MDSET_RELEASEDIR} .endif