cleaned up Makefile

This commit is contained in:
Alexander Bocken 2020-07-04 20:26:30 +02:00
parent 51ec2690a8
commit 427ff66213

View File

@ -4,21 +4,21 @@
VERSION = 1.1
# paths
PREFIX = ~/.local/bin
DESTDIR= ~/.local/bin
DATA_DIR = ~/.local/share/bt#if changed, needs adjustment in bt as well (defined in the beginning)
SRC = bt
install:
mkdir -p $(DESTDIR)$(PREFIX)
mkdir -p $(DESTDIR)
mkdir -p $(DATA_DIR)
cp -f bt $(DESTDIR)$(PREFIX)
chmod 755 $(DESTDIR)$(PREFIX)/bt
cp -f bt $(DESTDIR)/bt
chmod 755 $(DESTDIR)/bt
touch $(DATA_DIR)/blacklist
touch $(DATA_DIR)/paired
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bt
rm -f $(DESTDIR)/bt
rm -rf $(DATA_DIR)
#clears manual paired devices list and blacklist