From 86dbcfa3113159813252bb05a4ee59e23f4657a2 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Thu, 26 May 2016 00:04:31 +0300 Subject: [PATCH] [PATCH 2/3] Makefile.local: make IS_GIT simply expanded --- a8/a04308e1d9e8b890bd58762be2858320c43ad7 | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 a8/a04308e1d9e8b890bd58762be2858320c43ad7 diff --git a/a8/a04308e1d9e8b890bd58762be2858320c43ad7 b/a8/a04308e1d9e8b890bd58762be2858320c43ad7 new file mode 100644 index 000000000..7f3ee7483 --- /dev/null +++ b/a8/a04308e1d9e8b890bd58762be2858320c43ad7 @@ -0,0 +1,67 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 90F686DE02CC + for ; Wed, 25 May 2016 14:04:57 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.258 +X-Spam-Level: +X-Spam-Status: No, score=0.258 tagged_above=-999 required=5 tests=[AWL=0.267, + HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id s9c3REsJWOeP for ; + Wed, 25 May 2016 14:04:50 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id D3DE76DE01F7 + for ; Wed, 25 May 2016 14:04:40 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 2623C1000DF; Thu, 26 May 2016 00:04:35 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Cc: tomi.ollila@iki.fi +Subject: [PATCH 2/3] Makefile.local: make IS_GIT simply expanded +Date: Thu, 26 May 2016 00:04:31 +0300 +Message-Id: <1464210272-26281-2-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.8.2 +In-Reply-To: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi> +References: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Wed, 25 May 2016 21:04:57 -0000 + +By using ':=' while setting IS_GIT it is expanded to 'yes' or 'no' at +that point (and not every time when $(IS_GIT) is referenced). +--- + Makefile.local | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.local b/Makefile.local +index a1e9578441a4..ee3cf18f5757 100644 +--- a/Makefile.local ++++ b/Makefile.local +@@ -10,7 +10,7 @@ + # repository), we let git append identification of the actual commit. + PACKAGE=notmuch + +-IS_GIT=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi) ++IS_GIT:=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi) + + ifeq ($(IS_GIT),yes) + DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd) +-- +2.8.2 + -- 2.26.2