diff options
author | Carl Worth <cworth@cworth.org> | 2011-01-26 23:29:15 +1000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-01-26 23:36:52 +1000 |
commit | 1a915d1b3852c5771507710ed470547b53b1c7ec (patch) | |
tree | 5788173398ede71e87218cd2fd5b7da53e53c629 /Makefile.local | |
parent | b4b5e9ce4dac62111ec11da6d22b7e618056801f (diff) |
Makefile: Quote variables used as filenames in shell commands
This allows support for filenames with spaces in them.
Diffstat (limited to 'Makefile.local')
-rw-r--r-- | Makefile.local | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.local b/Makefile.local index 3c6151c..38ead11 100644 --- a/Makefile.local +++ b/Makefile.local @@ -265,10 +265,10 @@ notmuch.1.gz: notmuch.1 .PHONY: install install: all notmuch.1.gz - mkdir -p $(DESTDIR)$(mandir)/man1 - install -m0644 notmuch.1.gz $(DESTDIR)$(mandir)/man1/ - mkdir -p $(DESTDIR)$(prefix)/bin/ - install notmuch-shared $(DESTDIR)$(prefix)/bin/notmuch + mkdir -p "$(DESTDIR)$(mandir)/man1" + install -m0644 notmuch.1.gz "$(DESTDIR)$(mandir)/man1/" + mkdir -p "$(DESTDIR)$(prefix)/bin/" + install notmuch-shared "$(DESTDIR)$(prefix)/bin/notmuch" ifeq ($(MAKECMDGOALS), install) @echo "" @echo "Notmuch is now installed to $(DESTDIR)$(prefix)" @@ -293,8 +293,8 @@ endif .PHONY: install-desktop install-desktop: - mkdir -p $(DESTDIR)$(desktop_dir) - desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop + mkdir -p "$(DESTDIR)$(desktop_dir)" + desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" notmuch.desktop SRCS := $(SRCS) $(notmuch_client_srcs) CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) notmuch.elc notmuch.1.gz |