aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-07-28 20:36:05 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-08-09 09:31:58 -0400
commit25e3f85aa8dd7adf976a9a0027eee6f4f56eae30 (patch)
tree2adca981d2d5ec37c4511a61a985510f9d886808
parent18956cf2d78a8d4a5959e20240f04ce8d5a6c121 (diff)
iio: tools: add install section
Allow user to call install target. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--tools/Makefile6
-rw-r--r--tools/iio/Makefile10
2 files changed, 12 insertions, 4 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 221e1ce78b06..13d5d0a34721 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -93,7 +93,7 @@ kvm_stat: FORCE
93all: acpi cgroup cpupower gpio hv firewire lguest liblockdep \ 93all: acpi cgroup cpupower gpio hv firewire lguest liblockdep \
94 perf selftests turbostat usb \ 94 perf selftests turbostat usb \
95 virtio vm net x86_energy_perf_policy \ 95 virtio vm net x86_energy_perf_policy \
96 tmon freefall objtool kvm_stat 96 tmon freefall iio objtool kvm_stat
97 97
98acpi_install: 98acpi_install:
99 $(call descend,power/$(@:_install=),install) 99 $(call descend,power/$(@:_install=),install)
@@ -101,7 +101,7 @@ acpi_install:
101cpupower_install: 101cpupower_install:
102 $(call descend,power/$(@:_install=),install) 102 $(call descend,power/$(@:_install=),install)
103 103
104cgroup_install firewire_install gpio_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install objtool_install: 104cgroup_install firewire_install gpio_install hv_install iio_install lguest_install perf_install usb_install virtio_install vm_install net_install objtool_install:
105 $(call descend,$(@:_install=),install) 105 $(call descend,$(@:_install=),install)
106 106
107liblockdep_install: 107liblockdep_install:
@@ -123,7 +123,7 @@ kvm_stat_install:
123 $(call descend,kvm/$(@:_install=),install) 123 $(call descend,kvm/$(@:_install=),install)
124 124
125install: acpi_install cgroup_install cpupower_install gpio_install \ 125install: acpi_install cgroup_install cpupower_install gpio_install \
126 hv_install firewire_install lguest_install liblockdep_install \ 126 hv_install firewire_install iio_install lguest_install liblockdep_install \
127 perf_install selftests_install turbostat_install usb_install \ 127 perf_install selftests_install turbostat_install usb_install \
128 virtio_install vm_install net_install x86_energy_perf_policy_install \ 128 virtio_install vm_install net_install x86_energy_perf_policy_install \
129 tmon_install freefall_install objtool_install kvm_stat_install 129 tmon_install freefall_install objtool_install kvm_stat_install
diff --git a/tools/iio/Makefile b/tools/iio/Makefile
index 5581c062421a..d4d956020adf 100644
--- a/tools/iio/Makefile
+++ b/tools/iio/Makefile
@@ -1,5 +1,7 @@
1include ../scripts/Makefile.include 1include ../scripts/Makefile.include
2 2
3bindir ?= /usr/bin
4
3ifeq ($(srctree),) 5ifeq ($(srctree),)
4srctree := $(patsubst %/,%,$(dir $(CURDIR))) 6srctree := $(patsubst %/,%,$(dir $(CURDIR)))
5srctree := $(patsubst %/,%,$(dir $(srctree))) 7srctree := $(patsubst %/,%,$(dir $(srctree)))
@@ -54,6 +56,12 @@ clean:
54 rm -rf $(OUTPUT)include/linux/iio 56 rm -rf $(OUTPUT)include/linux/iio
55 find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete 57 find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
56 58
59install: $(ALL_PROGRAMS)
60 install -d -m 755 $(DESTDIR)$(bindir); \
61 for program in $(ALL_PROGRAMS); do \
62 install $$program $(DESTDIR)$(bindir); \
63 done
64
57FORCE: 65FORCE:
58 66
59.PHONY: all clean FORCE prepare 67.PHONY: all install clean FORCE prepare