Skip to content

Commit

Permalink
cpupower tools: add install target to the debug tools' makefiles
Browse files Browse the repository at this point in the history
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Franck Bui-Huu authored and Dominik Brodowski committed Mar 3, 2012
1 parent 7490ca1 commit f166033
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
14 changes: 13 additions & 1 deletion tools/power/cpupower/debug/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ ifeq ("$(origin O)", "command line")
OUTPUT := $(O)/
endif

DESTDIR =
bindir = /usr/bin

INSTALL = /usr/bin/install


default: all

Expand 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
12 changes: 11 additions & 1 deletion tools/power/cpupower/debug/x86_64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ ifeq ("$(origin O)", "command line")
OUTPUT := $(O)/
endif

DESTDIR =
bindir = /usr/bin

INSTALL = /usr/bin/install


default: all

Expand All @@ -17,4 +22,9 @@ all: $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode
clean:
rm -rf $(OUTPUT)centrino-decode $(OUTPUT)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}

.PHONY: all default clean install

0 comments on commit f166033

Please sign in to comment.