diff options
author | Russell L Friesenhahn <russellf@arlut.utexas.edu> | 2016-08-26 11:15:36 -0500 |
---|---|---|
committer | Russell L Friesenhahn <russellf@arlut.utexas.edu> | 2016-08-26 11:15:36 -0500 |
commit | ee620c6a24a62725f6f41b43728fe7ce4112e130 (patch) | |
tree | b79683af2747c609e0e311190ae816cb16a504d5 /Makefile | |
parent | 23f217b1668415009a7a842b66012686c2f2d5b0 (diff) | |
download | yosys-ee620c6a24a62725f6f41b43728fe7ce4112e130.tar.gz yosys-ee620c6a24a62725f6f41b43728fe7ce4112e130.tar.bz2 yosys-ee620c6a24a62725f6f41b43728fe7ce4112e130.zip |
Relax test to see if yosys dir is a git repository in Makefile
This prevents the test from failing in the case that yosys is a
submodule of a repository since for a submodule the .git is actually a
file containing the location of the submodule's .git directory
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ else LDLIBS += -lrt endif -YOSYS_VER := 0.6+$(shell test -d .git && { git log --author=clifford@clifford.at --oneline 5869d26da021.. | wc -l; }) +YOSYS_VER := 0.6+$(shell test -e .git && { git log --author=clifford@clifford.at --oneline 5869d26da021.. | wc -l; }) GIT_REV := $(shell cd $(YOSYS_SRC) && git rev-parse --short HEAD 2> /dev/null || echo UNKNOWN) OBJS = kernel/version_$(GIT_REV).o |