selftests/gpio: Add to CLEAN rule rather than overriding
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Nov 2020 10:08:43 +0000 (21:08 +1100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 10 Nov 2020 21:40:13 +0000 (14:40 -0700)
Rather than overriding the CLEAN rule we can just append to it.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/gpio/Makefile

index acf4088..41582fe 100644 (file)
@@ -20,10 +20,7 @@ GPIODIR := $(realpath ../../../gpio)
 GPIOOUT := $(OUTPUT)/tools-gpio/
 GPIOOBJ := $(GPIOOUT)/gpio-utils.o
 
 GPIOOUT := $(OUTPUT)/tools-gpio/
 GPIOOBJ := $(GPIOOUT)/gpio-utils.o
 
-override define CLEAN
-       $(RM) $(TEST_GEN_PROGS_EXTENDED)
-       $(RM) -rf $(GPIOOUT)
-endef
+CLEAN += ; $(RM) -rf $(GPIOOUT)
 
 $(TEST_GEN_PROGS_EXTENDED): $(GPIOOBJ)
 
 
 $(TEST_GEN_PROGS_EXTENDED): $(GPIOOBJ)