summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2023-02-10 17:20:57 -0700
committerShuah Khan <skhan@linuxfoundation.org>2023-02-13 10:05:49 -0700
commit6e81461b06b6a4a24bf97fca37d9b89f72ce8126 (patch)
tree5bc61a54a7b6b32ec61fd507fd1c2ea35c9b1f11
parent9e34fad00fc889abbb99d751a4c22cf2bded10df (diff)
downloadlinux-stable-6e81461b06b6a4a24bf97fca37d9b89f72ce8126.tar.gz
linux-stable-6e81461b06b6a4a24bf97fca37d9b89f72ce8126.tar.bz2
linux-stable-6e81461b06b6a4a24bf97fca37d9b89f72ce8126.zip
selftests/ptp: Remove clean target from Makefile
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>
-rw-r--r--tools/testing/selftests/ptp/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile
index eeab44cc6863..8f57f88ecadd 100644
--- a/tools/testing/selftests/ptp/Makefile
+++ b/tools/testing/selftests/ptp/Makefile
@@ -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)