cpupower tools: add install target to the debug tools' makefiles
authorFranck Bui-Huu <fbuihuu@gmail.com>
Tue, 7 Feb 2012 16:15:57 +0000 (17:15 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 3 Mar 2012 13:40:11 +0000 (14:40 +0100)
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
tools/power/cpupower/debug/i386/Makefile
tools/power/cpupower/debug/x86_64/Makefile

index 626478b8a554a77e1a8fec25efb1947e1159c320..3ba158f0e2871dee52cd7b2820706b0eca68eb9e 100644 (file)
@@ -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
index 8e26d67525cd7818e87cb5326d4aaad955bd2767..1c52145267166a076585e099ad478caac9c154a3 100644 (file)
@@ -3,6 +3,11 @@ ifeq ("$(origin O)", "command line")
        OUTPUT := $(O)/
 endif
 
+DESTDIR =
+bindir  = /usr/bin
+
+INSTALL = /usr/bin/install
+
 
 default: 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