summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-04-21 18:07:51 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2017-04-25 11:46:45 -0400
commitdf6438f9a726c8f803e03708c83928e439fd5e2f (patch)
tree532fffdfef0017ed5a2f59e92d15dbac66c97b9a /tools
parent8edd210d9b121681f7e69dc087ae80d7043008e9 (diff)
selftests: lib.mk: define CLEAN macro to allow Makefiles to override clean
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' Fixes: 88baa78d1f31 ("selftests: remove duplicated all and clean target") Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/lib.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 775c589ac3c0..959273c3a52e 100644
--- a/tools/testing/selftests/lib.mk
+++ b/tools/testing/selftests/lib.mk
@@ -51,8 +51,12 @@ endef
51emit_tests: 51emit_tests:
52 $(EMIT_TESTS) 52 $(EMIT_TESTS)
53 53
54clean: 54define CLEAN
55 $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN) 55 $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN)
56endef
57
58clean:
59 $(CLEAN)
56 60
57$(OUTPUT)/%:%.c 61$(OUTPUT)/%:%.c
58 $(LINK.c) $^ $(LDLIBS) -o $@ 62 $(LINK.c) $^ $(LDLIBS) -o $@