mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 03:20:53 +07:00
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: 88baa78d1f
("selftests: remove duplicated all and clean target")
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
8edd210d9b
commit
df6438f9a7
@ -51,8 +51,12 @@ endef
|
|||||||
emit_tests:
|
emit_tests:
|
||||||
$(EMIT_TESTS)
|
$(EMIT_TESTS)
|
||||||
|
|
||||||
clean:
|
define CLEAN
|
||||||
$(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN)
|
$(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN)
|
||||||
|
endef
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(CLEAN)
|
||||||
|
|
||||||
$(OUTPUT)/%:%.c
|
$(OUTPUT)/%:%.c
|
||||||
$(LINK.c) $^ $(LDLIBS) -o $@
|
$(LINK.c) $^ $(LDLIBS) -o $@
|
||||||
|
Loading…
Reference in New Issue
Block a user