selftests/ptp: Remove clean target from Makefile
authorShuah Khan <skhan@linuxfoundation.org>
Sat, 11 Feb 2023 00:20:57 +0000 (17:20 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 13 Feb 2023 17:05:49 +0000 (10:05 -0700)
Fix the following build warn removing unnecessary clean target
from the Makefile. lib.mk handles clean.

Makefile:10: warning: overriding recipe for target clean
../lib.mk:124: warning: ignoring old recipe for target clean

In addition, fix to use TEST_GEN_PROGS for generated test executables
and TES_PROGS for the shell script. Ger rid of all target as lib.mk
handles it.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ptp/Makefile

index eeab44cc686389bf039b9baa3d2c1284ef3576bd..8f57f88ecadd632746d47365b62ac2896149f8fc 100644 (file)
@@ -1,10 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 CFLAGS += $(KHDR_INCLUDES)
-TEST_PROGS := testptp
+TEST_GEN_PROGS := testptp
 LDLIBS += -lrt
-all: $(TEST_PROGS)
+TEST_PROGS = phc.sh
 
 include ../lib.mk
-
-clean:
-       rm -fr $(TEST_PROGS)