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

2010-01-24 Thread Carl Worth
On Sun, 22 Nov 2009 15:17:11 -0600, "Jeffrey C. Ollie"  
wrote:
> 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 

Thanks Jeff,

I've rebased this to master and committed it, (on an airplane, so hopefully
I'll remember to push it out when I get back on a network and this mail
goes out[*]).

-Carl

[*] Hmm... would be nice if I had an easy way to queue up a git push
similar to the way I'm queuing up this email...
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 



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

2009-11-23 Thread Carl Worth
On Sun, 22 Nov 2009 15:17:11 -0600, "Jeffrey C. Ollie"  
wrote:
> 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.

Hi Jeffrey,

I suppose if we're going to have a .desktop file it only makes sense to
install it. A couple of questions:

> +install-desktop:
> + install -d $(DESTDIR)$(desktop_dir)
> + desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) 
> notmuch.desktop

What does desktop-file-install do for us here? Anything that we couldn't
do with just "install"? I'm just wanting to be careful that we don't
break "make install" for people who may not even want this file.

If we really do need to install it with desktop-file-install, we could
do a configure check for that program, of course.

Thanks,

-Carl


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

2009-11-22 Thread Jeffrey C. Ollie
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 
---
 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 <