diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ef14d6c --- /dev/null +++ b/Makefile @@ -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 diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..407a87e --- /dev/null +++ b/config.mk @@ -0,0 +1,6 @@ +# dmenu version +VERSION = 1.0 + +# paths +PREFIX = ~/.local/bin +