]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/Makefile.local
build: update the desktop database after installing the desktop file
[notmuch] / emacs / Makefile.local
index b118c67d3ef6c2c813c63fd303a6aa000013cc0d..040e64d435724b450008260e9351e52b3551fdfe 100644 (file)
@@ -106,10 +106,10 @@ 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)
+       -update-desktop-database "$(DESTDIR)$(desktop_dir)"
+endif
 
 CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el $(dir)/notmuch-pkg.el