From: Clifford Wolf Date: Fri, 14 Oct 2016 15:18:18 +0000 (+0200) Subject: Fixed version string for out-of-tree builds X-Git-Tag: yosys-0.7~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fc69b309599e91ed7e772722546b2e03e9fc4db;p=yosys.git Fixed version string for out-of-tree builds --- diff --git a/Makefile b/Makefile index 01dbc5e12..9bde9b0b8 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ else LDLIBS += -lrt endif -YOSYS_VER := 0.6+$(shell test -e .git && { git log --author=clifford@clifford.at --oneline 5869d26da021.. | wc -l; }) +YOSYS_VER := 0.6+$(shell cd $(YOSYS_SRC) && 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