summaryrefslogtreecommitdiffstats
path: root/old-makefile
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-06-08 16:00:43 +0200
committerwm4 <wm4@nowhere>2014-06-08 20:48:42 +0200
commitcc74bc3fecd9d44d62ff162394cff02ad436a9cc (patch)
treeaef147eb40189cc07eda51ecdf775ad2c52c02d8 /old-makefile
parentda27eceb85269f7fbe656e5d967936bcf33e1aa0 (diff)
downloadmpv-cc74bc3fecd9d44d62ff162394cff02ad436a9cc.tar.bz2
mpv-cc74bc3fecd9d44d62ff162394cff02ad436a9cc.tar.xz
build: generate and install zsh completion script
Diffstat (limited to 'old-makefile')
-rw-r--r--old-makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/old-makefile b/old-makefile
index c4a4e76ba7..915bb08115 100644
--- a/old-makefile
+++ b/old-makefile
@@ -379,6 +379,9 @@ player/lua.c: player/lua/defaults.inc \
player/lua/osc.inc \
player/lua/options.inc
+etc/_mpv: TOOLS/zsh.pl ./mpv
+ ./$< > $@
+
# ./configure must be rerun if it changed
config.mak: configure
@echo "############################################################"
@@ -450,12 +453,17 @@ install-mpv-config: etc/encoding-profiles.conf
$(INSTALL) -d $(CONFDIR)
$(INSTALL) -m 644 etc/encoding-profiles.conf $(CONFDIR)
-install-data: install-mpv-icons install-mpv-desktop install-mpv-config
+install-mpv-zsh: etc/_mpv
+ $(INSTALL) -d $(prefix)/share/zsh/vendor-completions
+ $(INSTALL) -m 644 etc/_mpv $(prefix)/share/zsh/vendor-completions/
+
+install-data: install-mpv-icons install-mpv-desktop install-mpv-config install-mpv-zsh
uninstall:
$(RM) $(BINDIR)/mpv
$(RM) $(MANDIR)/man1/mpv.1 $(MANDIR)/en/man1/mpv.1
$(RM) $(prefix)/share/applications/mpv.desktop
+ $(RM) $(prefix)/share/zsh/vendor-completions/_mpv
$(RM) $(foreach size,$(ICONSIZES),$(prefix)/share/icons/hicolor/$(size)/apps/mpv.png)
clean: