Added initial Makefile

This commit is contained in:
Alexander Bocken 2020-04-18 21:41:04 +02:00
parent 466cbbdcfd
commit 44a6b0e3b0
2 changed files with 23 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
# bthandler
# See LICENSE file for copyright and license details.
include config.mk
SRC = bthandler
OBJ = $(SRC:.c=.o)
install:
mkdir -p $(DESTDIR)$(PREFIX)
cp -f bthandler $(DESTDIR)$(PREFIX)
chmod 755 $(DESTDIR)$(PREFIX)/bthandler
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bthandler
.PHONY: install uninstall

6
config.mk Normal file
View File

@ -0,0 +1,6 @@
# dmenu version
VERSION = 1.0
# paths
PREFIX = ~/.local/bin