[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFFD98E2@AcuExch.aculab.com>
Date: Mon, 24 Apr 2017 15:45:26 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Shuah Khan' <shuahkh@....samsung.com>,
"shuah@...nel.org" <shuah@...nel.org>,
"bamvor.zhangjian@...aro.org" <bamvor.zhangjian@...aro.org>,
"benh@...nel.crashing.org" <benh@...nel.crashing.org>,
"paulus@...ba.org" <paulus@...ba.org>,
"mpe@...erman.id.au" <mpe@...erman.id.au>,
"dvhart@...radead.org" <dvhart@...radead.org>
CC: "linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>,
"rkrcmar@...hat.com" <rkrcmar@...hat.com>,
"dsafonov@...tuozzo.com" <dsafonov@...tuozzo.com>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"emilio.lopez@...labora.co.uk" <emilio.lopez@...labora.co.uk>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>,
"luto@...nel.org" <luto@...nel.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"mingo@...nel.org" <mingo@...nel.org>
Subject: RE: [PATCH 2/8] selftests: lib.mk: define CLEAN macro to allow
Makefiles to override clean
From: Shuah Khan
> Sent: 22 April 2017 00:15
> Define CLEAN macro to allow Makefiles to override common clean target
> in lib.mk. This will help fix the following failures:
>
> warning: overriding recipe for target 'clean'
> ../lib.mk:55: warning: ignoring old recipe for target 'clean'
>
> Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
> ---
> tools/testing/selftests/lib.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
> index 775c589..959273c 100644
> --- a/tools/testing/selftests/lib.mk
> +++ b/tools/testing/selftests/lib.mk
> @@ -51,8 +51,12 @@ endef
> emit_tests:
> $(EMIT_TESTS)
>
> -clean:
> +define CLEAN
> $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN)
> +endef
> +
> +clean:
> + $(CLEAN)
If might be easier to do something like:
ifneq($(NO_CLEAN),y)
clean:
$(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN)
endif
David
Powered by blists - more mailing lists