aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..5656fe7
--- /dev/null
+++ b/makefile
@@ -0,0 +1,12 @@
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+MANSUB ?= share/man
+MANDIR ?= $(PREFIX)/$(MANSUB)
+
+install:
+ cp src/plug.sh $(BINDIR)/plug
+ cp man/plug.1 $(MANDIR)/
+
+uninstall:
+ rm -f $(BINDER)/plug
+ rm -f $(MANDIR)/plug.1