Re: [PATCH 2/8] selftests: lib.mk: define CLEAN macro to allow Makefiles to override clean

From: Michael Ellerman
Date: Sat Apr 22 2017 - 01:38:56 EST


Shuah Khan <shuahkh@xxxxxxxxxxxxxxx> writes:

> 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@xxxxxxxxxxxxxxx>

Should probably have:

Fixes: 88baa78d1f31 ("selftests: remove duplicated all and clean target")


In hindsight I'm not sure moving the clean target into lib.mk was
the best idea, but anyway it's a bit late to change our mind on that.

This patch is a good solution to fix the warnings.

Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

cheers