selftests/intel_pstate: Update makefile to match new style
authorStafford Horne <shorne@gmail.com>
Wed, 11 Jan 2017 15:16:06 +0000 (00:16 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 19 Jan 2017 17:30:40 +0000 (10:30 -0700)
Recent changes from Bamvor (88baa78d1f318) have standardized the
variable names like TEST_GEN_FILES and removed the need for make targets
all and clean.

These changes bring the intel_pstate test inline with those changes.

Cc: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/intel_pstate/Makefile

index f5f1a28715ffbf75fc098c9f194fe8e0a53eca57..19678e90efb25d1231e6bdfd97f8b6ea99a6f6bf 100644 (file)
@@ -1,15 +1,10 @@
-CC := $(CROSS_COMPILE)gcc
 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
 LDFLAGS := $(LDFLAGS) -lm
 
-TARGETS := msr aperf
+TEST_GEN_FILES := msr aperf
 
-TEST_PROGS := $(TARGETS) run.sh
+TEST_PROGS := run.sh
 
-.PHONY: all clean
-all: $(TARGETS)
+include ../lib.mk
 
-$(TARGETS): $(HEADERS)
-
-clean:
-       rm -f $(TARGETS)
+$(TEST_GEN_FILES): $(HEADERS)