From: Tomi Ollila Date: Wed, 25 May 2016 21:04:31 +0000 (+0300) Subject: Makefile.local: make IS_GIT simply expanded X-Git-Tag: 0.23_rc0~53 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=17341ec798b4cb2fe192824bcf8b7e78236e4121 Makefile.local: make IS_GIT simply expanded 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). --- diff --git a/Makefile.local b/Makefile.local index f2ad0c12..20041947 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)