X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile.local;h=5587cd2c29a635c004df1b1885409905a4b85b60;hp=f2ad0c12de677bfd38966f16ccfc933af1b9b6e4;hb=e954310d70674a439a50cf4c699467567095b057;hpb=92d8eae8f182e4eebc87d76f8d4f37e6c018883a diff --git a/Makefile.local b/Makefile.local index f2ad0c12..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 -o -f ${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)