diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-07-29 03:36:05 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-08-09 14:31:58 +0100 |
commit | 25e3f85aa8dd7adf976a9a0027eee6f4f56eae30 (patch) | |
tree | 2adca981d2d5ec37c4511a61a985510f9d886808 /tools/iio | |
parent | 18956cf2d78a8d4a5959e20240f04ce8d5a6c121 (diff) | |
download | linux-25e3f85aa8dd7adf976a9a0027eee6f4f56eae30.tar.gz linux-25e3f85aa8dd7adf976a9a0027eee6f4f56eae30.tar.bz2 linux-25e3f85aa8dd7adf976a9a0027eee6f4f56eae30.zip |
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>
Diffstat (limited to 'tools/iio')
-rw-r--r-- | tools/iio/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ include ../scripts/Makefile.include +bindir ?= /usr/bin + ifeq ($(srctree),) srctree := $(patsubst %/,%,$(dir $(CURDIR))) srctree := $(patsubst %/,%,$(dir $(srctree))) @@ -54,6 +56,12 @@ clean: rm -rf $(OUTPUT)include/linux/iio find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete +install: $(ALL_PROGRAMS) + install -d -m 755 $(DESTDIR)$(bindir); \ + for program in $(ALL_PROGRAMS); do \ + install $$program $(DESTDIR)$(bindir); \ + done + FORCE: -.PHONY: all clean FORCE prepare +.PHONY: all install clean FORCE prepare |