X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=completion%2FMakefile.local;h=755b0f7e9ba2d81af4fda1ee7e5cc2022f998c42;hp=6a6012d442c89ecd2fce43ea8816bbe49103ee9d;hb=1a915d1b3852c5771507710ed470547b53b1c7ec;hpb=7d9851e293fad762cd959e9be819e48a26087cdc diff --git a/completion/Makefile.local b/completion/Makefile.local index 6a6012d4..755b0f7e 100644 --- a/completion/Makefile.local +++ b/completion/Makefile.local @@ -12,7 +12,11 @@ install: install-$(dir) install-$(dir): @echo $@ - mkdir -p $(DESTDIR)$(bash_completion_dir) - install -m0644 $(bash_script) $(DESTDIR)$(bash_completion_dir)/notmuch - mkdir -p $(DESTDIR)$(zsh_completion_dir) - install -m0644 $(zsh_script) $(DESTDIR)$(zsh_completion_dir)/notmuch +ifeq ($(WITH_BASH),1) + mkdir -p "$(DESTDIR)$(bash_completion_dir)" + install -m0644 $(bash_script) "$(DESTDIR)$(bash_completion_dir)/notmuch" +endif +ifeq ($(WITH_ZSH),1) + mkdir -p "$(DESTDIR)$(zsh_completion_dir)" + install -m0644 $(zsh_script) "$(DESTDIR)$(zsh_completion_dir)/_notmuch" +endif