Re: [Kbuild] How to clean a particular directory ?

From: Francis Moreau
Date: Thu Jan 31 2008 - 03:58:04 EST


On Jan 31, 2008 9:54 AM, Paul Mundt <lethal@xxxxxxxxxxxx> wrote:
> Makefile says:
>
> # Use make M=dir to specify directory of external module to build
> # Old syntax make ... SUBDIRS=$PWD is still supported
> # Setting the environment variable KBUILD_EXTMOD take precedence
> ifdef SUBDIRS
> KBUILD_EXTMOD ?= $(SUBDIRS)
> endif
> ifdef M
> ifeq ("$(origin M)", "command line")
> KBUILD_EXTMOD := $(M)
> endif
> endif
>
> so M= is apparently the newfangled (and undocumented) way of doing this.
>

Good catch.

I tried "make help" to search for revelant info but didn't find anything useful.

Thanks
--
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/