]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/Makefile.local
build: install notmuch-emacs-mua.desktop file with emacs
[notmuch] / emacs / Makefile.local
index b118c67d3ef6c2c813c63fd303a6aa000013cc0d..2cfa77ffd0dddf98ccdca1319c346fc01a472994 100644 (file)
@@ -106,10 +106,9 @@ endif
        install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
        mkdir -p "$(DESTDIR)$(prefix)/bin/"
        install $(emacs_mua) "$(DESTDIR)$(prefix)/bin"
-
-.PHONY: install-desktop
-install-desktop:
+ifeq ($(WITH_DESKTOP),1)
        mkdir -p "$(DESTDIR)$(desktop_dir)"
        desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" $(emacs_mua_desktop)
+endif
 
 CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el $(dir)/notmuch-pkg.el