X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile.local;h=5587cd2c29a635c004df1b1885409905a4b85b60;hp=cf16185e3daacdf1a37418019423e78bc8941e0c;hb=301a65b0f2f7e4551ded7104d779b8600a806b2b;hpb=6a833a6e83865f6999707cc30768d07e1351c2cb diff --git a/Makefile.local b/Makefile.local index cf16185e..5587cd2c 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 ] ; then echo yes ; else echo no; fi) +IS_GIT:=$(if $(wildcard ${srcdir}/.git),yes,no) ifeq ($(IS_GIT),yes) DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)