Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 79735431FBC for ; Sun, 22 Nov 2009 13:17:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3QkyGyRJVrLe for ; Sun, 22 Nov 2009 13:17:24 -0800 (PST) Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204]) by olra.theworths.org (Postfix) with ESMTP id D76BB431FAE for ; Sun, 22 Nov 2009 13:17:24 -0800 (PST) Received: by yxe42 with SMTP id 42so4939025yxe.22 for ; Sun, 22 Nov 2009 13:17:24 -0800 (PST) Received: by 10.150.239.1 with SMTP id m1mr7090623ybh.152.1258924644542; Sun, 22 Nov 2009 13:17:24 -0800 (PST) Received: from lt26923.campus.dmacc.edu ([69.57.47.215]) by mx.google.com with ESMTPS id 13sm1832751gxk.9.2009.11.22.13.17.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Nov 2009 13:17:24 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NCJo8-0004W0-Ph; Sun, 22 Nov 2009 15:17:21 -0600 From: "Jeffrey C. Ollie" To: Not Much Mail Date: Sun, 22 Nov 2009 15:17:11 -0600 Message-Id: <1258924631-17326-1-git-send-email-jeff@ocjtech.us> X-Mailer: git-send-email 1.6.5.2 Subject: [notmuch] [PATCH] Add install target for desktop files. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2009 21:17:25 -0000 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 <