]> git.notmuchmail.org Git - notmuch/blobdiff - completion/Makefile.local
Makefile: Quote variables used as filenames in shell commands
[notmuch] / completion / Makefile.local
index 6a6012d442c89ecd2fce43ea8816bbe49103ee9d..755b0f7e9ba2d81af4fda1ee7e5cc2022f998c42 100644 (file)
@@ -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