emacs: don't fset keymaps
[notmuch] / completion / Makefile.local
1 # -*- makefile -*-
2
3 dir := completion
4
5 # The dir variable will be re-assigned to later, so we can't use it
6 # directly in any shell commands. Instead we save its value in other,
7 # private variables that we can use in the commands.
8 bash_script := $(srcdir)/$(dir)/notmuch-completion.bash
9 zsh_scripts := $(srcdir)/$(dir)/zsh/_notmuch $(srcdir)/$(dir)/zsh/_email-notmuch
10
11 install: install-$(dir)
12
13 install-$(dir):
14         @echo $@
15 ifeq ($(WITH_BASH),1)
16         mkdir -p "$(DESTDIR)$(bash_completion_dir)"
17         install -m0644 $(bash_script) "$(DESTDIR)$(bash_completion_dir)/notmuch"
18 endif
19 ifeq ($(WITH_ZSH),1)
20         mkdir -p "$(DESTDIR)$(zsh_completion_dir)"
21         install -m0644 $(zsh_scripts) "$(DESTDIR)$(zsh_completion_dir)"
22 endif