2020-04-18 21:41:04 +02:00
|
|
|
# bthandler
|
|
|
|
# See LICENSE file for copyright and license details.
|
|
|
|
|
2020-04-18 22:31:45 +02:00
|
|
|
VERSION = 1.1
|
2020-04-18 21:53:07 +02:00
|
|
|
|
|
|
|
# paths
|
2020-06-07 20:56:01 +02:00
|
|
|
PREFIX = ~/.local/bin
|
|
|
|
DATA_DIR = ~/.local/share/bt#if changed, needs adjustment in bt as well (defined in the beginning)
|
|
|
|
SRC = bt
|
2020-04-18 21:41:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)
|
2020-06-07 20:56:01 +02:00
|
|
|
mkdir -p $(DATA_DIR)
|
|
|
|
cp -f bt $(DESTDIR)$(PREFIX)
|
|
|
|
chmod 755 $(DESTDIR)$(PREFIX)/bt
|
|
|
|
touch $(DATA_DIR)/blacklist
|
|
|
|
touch $(DATA_DIR)/paired
|
2020-04-18 21:41:04 +02:00
|
|
|
|
|
|
|
uninstall:
|
2020-06-07 20:56:01 +02:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bt
|
|
|
|
rm -rf $(DATA_DIR)
|
2020-04-18 21:41:04 +02:00
|
|
|
|
2020-06-07 20:56:01 +02:00
|
|
|
#clears manual paired devices list and blacklist
|
|
|
|
clear:
|
|
|
|
rm -rf $(DATA_DIR)
|
|
|
|
mkdir -p $(DATA_DIR)
|
|
|
|
touch $(DATA_DIR)/paired
|
|
|
|
touch $(DATA_DIR)/blacklist
|
|
|
|
|
|
|
|
.PHONY: install uninstall clear
|