diff options
author | 2019-04-24 14:28:01 +0200 | |
---|---|---|
committer | 2019-04-24 12:34:31 +0000 | |
commit | 224f667013ae930b3698eb896889edbf1c0cf2c5 (patch) | |
tree | efabd608de839e6493b4a8148b958d79184c9c53 /Makefile | |
parent | 76c7d5f13902ee2a58a05c0de01394650bcb4613 (diff) | |
parent | 4d67fb6cfb56d0abd8ec1c9149b88efd4828935d (diff) |
Merge branch 'sandbox/tbultel/avirt'
This migrates all the commits that were on the now-deprecated
iot.bzh github.
Bug-AGL: SPEC-2259
Change-Id: I98820a409cd02ee977e0383c1be227dc22344099
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3d4ea57 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +DESTDIR?=/usr/local + +MAKEFILE_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +SCRIPTS=$(wildcard $(MAKEFILE_DIR)/bin/*) +MEDIA=$(wildcard $(MAKEFILE_DIR)/media/*) + +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: $(SCRIPTS) $(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)/share/4a/media" + mkdir -p $(DESTDIR)/share/4a/media + install $(MEDIA) -m 640 $(DESTDIR)/share/4a/media + +clean: + @echo "Cleanup done." |