Messages in this thread | | | Date | Thu, 31 Jan 2008 09:57:48 +0100 | From | "Francis Moreau" <> | Subject | Re: [Kbuild] How to clean a particular directory ? |
| |
On Jan 31, 2008 9:54 AM, Paul Mundt <lethal@linux-sh.org> 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
| |