X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2FMakefile.local;h=040e64d435724b450008260e9351e52b3551fdfe;hp=6408c02cc93656def66716f1741cab1e6074f521;hb=383796c325de2dbb32c5c02157777d2d06d39f0b;hpb=440d24e7cccd2699d9cfdcb57c90aaf759da7832 diff --git a/emacs/Makefile.local b/emacs/Makefile.local index 6408c02c..040e64d4 100644 --- a/emacs/Makefile.local +++ b/emacs/Makefile.local @@ -39,6 +39,7 @@ all: $(dir)/notmuch-pkg.el install-emacs: $(dir)/notmuch-pkg.el emacs_mua := $(dir)/notmuch-emacs-mua +emacs_mua_desktop := $(dir)/notmuch-emacs-mua.desktop emacs_images := \ $(srcdir)/$(dir)/notmuch-logo.png @@ -105,5 +106,10 @@ endif install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)" mkdir -p "$(DESTDIR)$(prefix)/bin/" install $(emacs_mua) "$(DESTDIR)$(prefix)/bin" +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