Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / cc / e6c29e49ecff504a8cd4dfbf3f1c6dd15993fd
1 Return-Path: <jeff@ocjtech.us>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 79735431FBC\r
6         for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 13:17:25 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id 3QkyGyRJVrLe for <notmuch@notmuchmail.org>;\r
11         Sun, 22 Nov 2009 13:17:24 -0800 (PST)\r
12 Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com\r
13         [209.85.210.204])\r
14         by olra.theworths.org (Postfix) with ESMTP id D76BB431FAE\r
15         for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 13:17:24 -0800 (PST)\r
16 Received: by yxe42 with SMTP id 42so4939025yxe.22\r
17         for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 13:17:24 -0800 (PST)\r
18 Received: by 10.150.239.1 with SMTP id m1mr7090623ybh.152.1258924644542;\r
19         Sun, 22 Nov 2009 13:17:24 -0800 (PST)\r
20 Received: from lt26923.campus.dmacc.edu ([69.57.47.215])\r
21         by mx.google.com with ESMTPS id 13sm1832751gxk.9.2009.11.22.13.17.23\r
22         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
23         Sun, 22 Nov 2009 13:17:24 -0800 (PST)\r
24 Received: from localhost ([127.0.0.1] helo=localhost.localdomain)\r
25         by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256)\r
26         (Exim 4.69) (envelope-from <jeff@ocjtech.us>)\r
27         id 1NCJo8-0004W0-Ph; Sun, 22 Nov 2009 15:17:21 -0600\r
28 From: "Jeffrey C. Ollie" <jeff@ocjtech.us>\r
29 To: Not Much Mail <notmuch@notmuchmail.org>\r
30 Date: Sun, 22 Nov 2009 15:17:11 -0600\r
31 Message-Id: <1258924631-17326-1-git-send-email-jeff@ocjtech.us>\r
32 X-Mailer: git-send-email 1.6.5.2\r
33 Subject: [notmuch] [PATCH] Add install target for desktop files.\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.12\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38         <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Sun, 22 Nov 2009 21:17:25 -0000\r
47 \r
48 Add an install target that uses desktop-file-install to install the\r
49 desktop file in the appropriate location.  The location of the install\r
50 can be modified by changing the desktop_dir variable.\r
51 \r
52 Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>\r
53 ---\r
54  Makefile.local |    4 ++++\r
55  configure      |    1 +\r
56  2 files changed, 5 insertions(+), 0 deletions(-)\r
57 \r
58 diff --git a/Makefile.local b/Makefile.local\r
59 index c87e0c4..2e7c3cd 100644\r
60 --- a/Makefile.local\r
61 +++ b/Makefile.local\r
62 @@ -45,5 +45,9 @@ install-emacs: install emacs\r
63         install -m0644 notmuch.el $(DESTDIR)$(emacs_lispdir)\r
64         install -m0644 notmuch.elc $(DESTDIR)$(emacs_lispdir)\r
65  \r
66 +install-desktop:\r
67 +       install -d $(DESTDIR)$(desktop_dir)\r
68 +       desktop-file-install --mode 0644 --dir $(DESTDIR)$(desktop_dir) notmuch.desktop\r
69 +\r
70  SRCS  := $(SRCS) $(notmuch_client_srcs)\r
71  CLEAN := $(CLEAN) notmuch $(notmuch_client_modules) notmuch.elc notmuch.1.gz\r
72 diff --git a/configure b/configure\r
73 index b4770ec..1198ba7 100755\r
74 --- a/configure\r
75 +++ b/configure\r
76 @@ -132,5 +132,6 @@ EOF\r
77  cat > Makefile.config <<EOF\r
78  prefix = /usr/local\r
79  bash_completion_dir = /etc/bash_completion.d\r
80 +desktop_dir = /usr/share/applications\r
81  CFLAGS += ${have_valgrind}\r
82  EOF\r
83 -- \r
84 1.6.5.2\r
85 \r