From b9224daa41f24cf3d19d15dfd17b0c8cef774429 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Mon, 22 Apr 2013 13:46:13 +0200 Subject: backports: support make clean/mrproper The kernel's "make clean" will recurse into subdirectories, even into those that aren't enabled in Kconfig. Thus, the previous trick of changing symbols from CONFIG_* to IMPOSSIBLE_* doesn't work any more. Change this to comment out the lines instead and then support "make clean" and "make mrproper". Signed-off-by: Johannes Berg --- backport/Makefile.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'backport/Makefile.build') diff --git a/backport/Makefile.build b/backport/Makefile.build index 3ac4350e..d2090415 100644 --- a/backport/Makefile.build +++ b/backport/Makefile.build @@ -1,6 +1,10 @@ -include .config +-include .config export .PHONY: modules modules: @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_PWD) modules + +.PHONY: clean +clean: + @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_PWD) clean -- cgit v1.2.3