aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile14
-rw-r--r--TODO6
-rw-r--r--bin/4a-get_roles1
3 files changed, 18 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."
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..56d4ec2
--- /dev/null
+++ b/TODO
@@ -0,0 +1,6 @@
+* push OGG file
+* push WAV file
+* add script for basic aplay on output card
+* add script for basic aplay through loopback (softmixer)
+* add script to play mp3 or ogg using gstreamer (gst-launch-1.0 ...)
+* add script to play with mediaplayer api: list / play / stop / next / prev ...
diff --git a/bin/4a-get_roles b/bin/4a-get_roles
new file mode 100644
index 0000000..fc7f2d0
--- /dev/null
+++ b/bin/4a-get_roles
@@ -0,0 +1 @@
+afb-client-demo -d unix:/run/user/0/apis/ws/ahl-4a get_roles ""