Re: [PATCH 2/8] selftests: lib.mk: define CLEAN macro to allow Makefiles to override clean
From: Shuah Khan
Date: Tue Apr 25 2017 - 09:37:02 EST
On 04/21/2017 11:38 PM, Michael Ellerman wrote:
> 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")
Amended the change log to add the above.
>
>
> 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.
Yeah. Moving clean target to lib.mk ended up to be problematic. However,
there are some advantages as well. It will simplify some Makefiles. One
thing that was missed was that not finding the Makefiles that require
overrides. Anyway live and learn.
>
> This patch is a good solution to fix the warnings.
>
> Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
>
Thanks. I plan to apply the patch with the amended changelog and your
Ack. Please let me know if you want to see v2 with the change sent out.
thanks,
-- Shuah