mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
Makefile.local: use $(wildcard) to check existence of ${srcdir}/.git
With this GNU Make construct one shell invocation can be skipped and code looks shorter (narrower). This would now match to .git being other file type than regular file or directory (or symlink to those), but that is not a use case anyone should expect users to do.
This commit is contained in:
parent
17341ec798
commit
e0e6a17675
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
# repository), we let git append identification of the actual commit.
|
# repository), we let git append identification of the actual commit.
|
||||||
PACKAGE=notmuch
|
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)
|
ifeq ($(IS_GIT),yes)
|
||||||
DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)
|
DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)
|
||||||
|
|
Loading…
Reference in a new issue