summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/debug/i386
diff options
context:
space:
mode:
authorFranck Bui-Huu <fbuihuu@gmail.com>2012-02-07 20:15:57 +0400
committerDominik Brodowski <linux@dominikbrodowski.net>2012-03-03 17:40:11 +0400
commitf16603386b38c28979f4df1cafdc2fe73fa87d37 (patch)
tree738a36afc8079dcc460c18e3b5afa11aa985521e /tools/power/cpupower/debug/i386
parent7490ca1ea5af18bd0ceb3b96ddb2f10b09e08b5d (diff)
downloadlinux-f16603386b38c28979f4df1cafdc2fe73fa87d37.tar.xz
cpupower tools: add install target to the debug tools' makefiles
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'tools/power/cpupower/debug/i386')
-rw-r--r--tools/power/cpupower/debug/i386/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/power/cpupower/debug/i386/Makefile b/tools/power/cpupower/debug/i386/Makefile
index 626478b8a554..3ba158f0e287 100644
--- a/tools/power/cpupower/debug/i386/Makefile
+++ b/tools/power/cpupower/debug/i386/Makefile
@@ -3,6 +3,11 @@ ifeq ("$(origin O)", "command line")
OUTPUT := $(O)/
endif
+DESTDIR =
+bindir = /usr/bin
+
+INSTALL = /usr/bin/install
+
default: all
@@ -23,4 +28,11 @@ all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)pow
clean:
rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode}
-.PHONY: all default clean
+install:
+ $(INSTALL) -d $(DESTDIR)${bindir}
+ $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir}
+ $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir}
+ $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir}
+ $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir}
+
+.PHONY: all default clean install