]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile.local
emacs: notmuch-check-exit-status bugfix
[notmuch] / Makefile.local
index cf16185e3daacdf1a37418019423e78bc8941e0c..5587cd2c29a635c004df1b1885409905a4b85b60 100644 (file)
@@ -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)