diff options
-rw-r--r-- | tools/power/cpupower/debug/i386/Makefile | 14 | ||||
-rw-r--r-- | tools/power/cpupower/debug/x86_64/Makefile | 12 |
2 files changed, 24 insertions, 2 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") | |||
3 | OUTPUT := $(O)/ | 3 | OUTPUT := $(O)/ |
4 | endif | 4 | endif |
5 | 5 | ||
6 | DESTDIR = | ||
7 | bindir = /usr/bin | ||
8 | |||
9 | INSTALL = /usr/bin/install | ||
10 | |||
6 | 11 | ||
7 | default: all | 12 | default: all |
8 | 13 | ||
@@ -23,4 +28,11 @@ all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)pow | |||
23 | clean: | 28 | clean: |
24 | rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode} | 29 | rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode} |
25 | 30 | ||
26 | .PHONY: all default clean | 31 | install: |
32 | $(INSTALL) -d $(DESTDIR)${bindir} | ||
33 | $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir} | ||
34 | $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir} | ||
35 | $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir} | ||
36 | $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir} | ||
37 | |||
38 | .PHONY: all default clean install | ||
diff --git a/tools/power/cpupower/debug/x86_64/Makefile b/tools/power/cpupower/debug/x86_64/Makefile index 8e26d67525cd..1c5214526716 100644 --- a/tools/power/cpupower/debug/x86_64/Makefile +++ b/tools/power/cpupower/debug/x86_64/Makefile | |||
@@ -3,6 +3,11 @@ ifeq ("$(origin O)", "command line") | |||
3 | OUTPUT := $(O)/ | 3 | OUTPUT := $(O)/ |
4 | endif | 4 | endif |
5 | 5 | ||
6 | DESTDIR = | ||
7 | bindir = /usr/bin | ||
8 | |||
9 | INSTALL = /usr/bin/install | ||
10 | |||
6 | 11 | ||
7 | default: all | 12 | default: all |
8 | 13 | ||
@@ -17,4 +22,9 @@ all: $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode | |||
17 | clean: | 22 | clean: |
18 | rm -rf $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode | 23 | rm -rf $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode |
19 | 24 | ||
20 | .PHONY: all default clean | 25 | install: |
26 | $(INSTALL) -d $(DESTDIR)${bindir} | ||
27 | $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir} | ||
28 | $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir} | ||
29 | |||
30 | .PHONY: all default clean install | ||