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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backport/Makefile') diff --git a/backport/Makefile b/backport/Makefile index 5cb70169..287b27de 100644 --- a/backport/Makefile +++ b/backport/Makefile @@ -29,6 +29,13 @@ export KLIB KLIB_BUILD BACKPORT_PWD KMODDIR KMODPATH_ARG default: @$(MAKE) modules +.PHONY: mrproper +mrproper: + @test -f .config && $(MAKE) clean || true + @rm -f .config + @rm -f .kernel_config_md5 Kconfig.versions Kconfig.kernel + @rm -f backport-include/backport/autoconf.h + .DEFAULT: @set -e ; test -f $(KERNEL_CONFIG) || ( \ echo "/--------------" ;\ -- cgit v1.2.3