Adds makefile

Issue #3

This adds install and uninstall options. It doesn't yet run test due to
issues I'm having with shellcheck and sourced files
master
Jonathan Hodgson 4 years ago
parent d56d5ddbfd
commit 05dc1b93bd
  1. 17
      Makefile

@ -0,0 +1,17 @@
# kb
.POSIX:
# paths
PREFIX = /usr/local
#MANPREFIX = $(PREFIX)/share/man
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
sed '/^source/d' inc/* kb > $(DESTDIR)$(PREFIX)/bin/kb
chmod +x $(DESTDIR)$(PREFIX)/bin/kb
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/kb
.PHONY: install uninstall
Loading…
Cancel
Save