summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2018-07-19 13:04:37 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2019-04-24 14:18:10 +0200
commit8afcd54b999813b220b7499d3b080373be25138e (patch)
tree248ceab372621e2730062ca383d0d8d08fbcefb8 /Makefile
parent534c6d7633a566d117ec3a8cd4563283e85b1a77 (diff)
add script 4a-get_roles for elementary test of 4A high level API
Change-Id: I61c9982e73fbc894307da8e29c5c062b136b4d84 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 46328b4..65393e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
-PREFIX=/usr/local
+DESTDIR?=/usr/local
MAKEFILE_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+SCRIPTS=$(wildcard $(MAKEFILE_DIR)/bin/*)
MEDIA=$(wildcard $(MAKEFILE_DIR)/media/*)
all: help
@@ -8,11 +10,17 @@ all: help
help:
@echo "Usage (root access required):"
@echo "* make install"
+ @echo " will install scripts in $(DESTDIR)"
+ @echo "* make install DESTDIR=/usr"
+ @echo " changes the destination dir (in this example, the scripts will be installed in /usr/bin)"
install: $(MEDIA)
+ @echo "Installing audio scripts $(notdir $(SCRIPTS)) into $(DESTDIR)/bin"
+ mkdir -p $(DESTDIR)/bin
+ install $(SCRIPTS) -m 750 $(DESTDIR)/bin
@echo "Installing audio test files $(notdir $(MEDIA)) into $(DESTDIR)/media"
mkdir -p $(DESTDIR)/media
- install $(MEDIA) -m 750 $(DESTDIR)/media
+ install $(MEDIA) -m 640 $(DESTDIR)/media
clean:
- @rm -vf $(SCRIPTS)
+ @echo "Cleanup done."