]> git.notmuchmail.org Git - notmuch/commitdiff
Makefile.local: make IS_GIT simply expanded
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 25 May 2016 21:04:31 +0000 (00:04 +0300)
committerDavid Bremner <david@tethera.net>
Sun, 4 Sep 2016 11:14:46 +0000 (08:14 -0300)
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

index f2ad0c12de677bfd38966f16ccfc933af1b9b6e4..200419472084177f944476cbf8e487b9526e978d 100644 (file)
@@ -10,7 +10,7 @@
 # repository), we let git append identification of the actual commit.
 PACKAGE=notmuch
 
 # 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)
 
 ifeq ($(IS_GIT),yes)
 DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)