mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-17 06:11:47 +00:00
count relative to version tag, and ignore non existing
This commit is contained in:
parent
0090aa96b6
commit
63068f9b8f
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -165,7 +165,7 @@ YOSYS_VER := 0.62
|
|||
|
||||
ifneq (, $(shell command -v git 2>/dev/null))
|
||||
ifneq (, $(shell git rev-parse --git-dir 2>/dev/null))
|
||||
GIT_COMMIT_COUNT := $(shell git rev-list --count $(shell git describe --tags --abbrev=0)..HEAD 2>/dev/null)
|
||||
GIT_COMMIT_COUNT := $(or $(shell git rev-list --count v$(YOSYS_VER)..HEAD 2>/dev/null),0)
|
||||
ifneq ($(GIT_COMMIT_COUNT),0)
|
||||
YOSYS_VER := $(YOSYS_VER)+$(GIT_COMMIT_COUNT)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue