]> git.notmuchmail.org Git - notmuch/commitdiff
Add install target for notmuch.desktop file.
authorJeffrey C. Ollie <jeff@ocjtech.us>
Sun, 22 Nov 2009 21:17:11 +0000 (15:17 -0600)
committerCarl Worth <cworth@cworth.org>
Sat, 23 Jan 2010 18:29:54 +0000 (07:29 +1300)
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@ocjtech.us>
Makefile.local
configure

index d579242c64174589dd70338c16d3a8175a4dfde9..04bac838a7b23efe14a5950c9c38129106bb19fe 100644 (file)
@@ -43,6 +43,10 @@ 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
+
 install-bash:
        install -d $(DESTDIR)$(bash_completion_dir)
        install -m0644 contrib/notmuch-completion.bash \
index d240b6acf8bda20b033e62ef1beda4c3cebe38d3..a2af672d8d2552ee1050225fd137493de19ab30e 100755 (executable)
--- a/configure
+++ b/configure
@@ -274,6 +274,9 @@ prefix = ${PREFIX}
 # The directory to which emacs lisp files should be installed
 emacs_lispdir=${emacs_lispdir}
 
+# The directory to which desktop files should be installed
+desktop_dir = \${prefix}/share/applications
+
 # Whether the getline function is available (if not, then notmuch will
 # build its own version)
 HAVE_GETLINE = ${have_getline}