]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
selftests: powerpc: override clean in lib.mk to fix warnings
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 21 Apr 2017 22:22:10 +0000 (16:22 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 25 Apr 2017 15:47:38 +0000 (09:47 -0600)
Add override for lib.mk clean to fix the following warnings from clean
target run.

Makefile:63: warning: overriding recipe for target 'clean'
../lib.mk:55: warning: ignoring old recipe for target 'clean'

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/powerpc/Makefile

index 1c5d0575802e47113b49b4b0facfd7bff47a6620..8d9fc64c8761ff0d62f99cf71583add504faaacf 100644 (file)
@@ -59,12 +59,13 @@ override define EMIT_TESTS
        done;
 endef
 
-clean:
+override define CLEAN
        @for TARGET in $(SUB_DIRS); do \
                BUILD_TARGET=$$OUTPUT/$$TARGET; \
                $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean; \
        done;
        rm -f tags
+endef
 
 tags:
        find . -name '*.c' -o -name '*.h' | xargs ctags