[notmuch] [PATCH] Add install target for desktop files.

Jeffrey C. Ollie jeff at ocjtech.us
Sun Nov 22 13:17:11 PST 2009


Add an install target that uses desktop-file-install to install the
desktop file in the appropriate location.  The location of the install
can be modified by changing the desktop_dir variable.

Signed-off-by: Jeffrey C. Ollie <jeff at ocjtech.us>
---
 Makefile.local |    4 ++++
 configure      |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile.local b/Makefile.local
index c87e0c4..2e7c3cd 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -45,5 +45,9 @@ install-emacs: install emacs
 	install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)
 	install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)
 
+install-desktop:
+	install -d $(DESTDIR)$(desktop_dir)
+	desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop
+
 SRCS  := $(SRCS) $(notmuch_client_srcs)
 CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz
diff --git a/configure b/configure
index b4770ec..1198ba7 100755
--- a/configure
+++ b/configure
@@ -132,5 +132,6 @@ EOF
 cat > Makefile.config <<EOF
 prefix = /usr/local
 bash_completion_dir = /etc/bash_completion.d
+desktop_dir = /usr/share/applications
 CFLAGS += ${have_valgrind}
 EOF
-- 
1.6.5.2



More information about the notmuch mailing list