aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-26 19:09:07 +0200
committerGravatar Tom Willemse2013-05-26 19:09:07 +0200
commitaa0accc9772c8d49f16fc167f49587ff902bd3dd (patch)
tree68b386eb62a01add94c3c3475f36ee64e58f5fff
parent5c0189e9ca1cda9405cb2cfddf369945a39ace48 (diff)
downloadgitto-aa0accc9772c8d49f16fc167f49587ff902bd3dd.tar.gz
gitto-aa0accc9772c8d49f16fc167f49587ff902bd3dd.zip
Add Makefile for zsh/
Installs the ZSH completion module into `DESTDIR/shar/zsh/site-functions/_gitto'.
-rw-r--r--Makefile2
-rw-r--r--zsh/Makefile11
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5c2306a..256c7d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
export DESTDIR ?= /usr
-dirs = src gitto
+dirs = src gitto zsh
install-dirs = $(addprefix install-,$(dirs))
uninstall-dirs = $(addprefix uninstall-,$(dirs))
diff --git a/zsh/Makefile b/zsh/Makefile
new file mode 100644
index 0000000..0fe3d40
--- /dev/null
+++ b/zsh/Makefile
@@ -0,0 +1,11 @@
+DESTDIR ?= /usr/local
+
+.PHONY: all install uninstall
+
+all:
+
+install:
+ install -Dm 644 _gitto $(DESTDIR)/share/zsh/site-functions/_gitto
+
+uninstall:
+ rm -f $(DESTDIR)/share/zsh/site-functions/_gitto