summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2018-07-18 13:52:48 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2019-04-24 14:18:10 +0200
commit534c6d7633a566d117ec3a8cd4563283e85b1a77 (patch)
tree141f4310b38c53254ff49ed88e0d7a2c7ff89c2c /Makefile
parent5ff9151235a33e79e9f75f91b4f63e8dcd00f419 (diff)
Add Make file
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..46328b4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+PREFIX=/usr/local
+
+MAKEFILE_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+MEDIA=$(wildcard $(MAKEFILE_DIR)/media/*)
+
+all: help
+
+help:
+ @echo "Usage (root access required):"
+ @echo "* make install"
+
+install: $(MEDIA)
+ @echo "Installing audio test files $(notdir $(MEDIA)) into $(DESTDIR)/media"
+ mkdir -p $(DESTDIR)/media
+ install $(MEDIA) -m 750 $(DESTDIR)/media
+
+clean:
+ @rm -vf $(SCRIPTS)