diff --git a/Makefile b/Makefile index 630ba258..ddde85d8 100644 --- a/Makefile +++ b/Makefile @@ -144,7 +144,7 @@ MACH_TYPE:="$(strip $(shell uname -m))" GIT_TAG?="$(strip $(shell git tag 2>&1 | tail -1 | cut -f1 -d' '))" # deal with case of no git or no git tags, check for presence of "v" (i.e. "v1.93") ifneq ($(findstring v,$(GIT_TAG)), v) - GIT_TAG:="v0" + GIT_TAG:="v$(strip $(shell data -r . +'%Y%m%d' ))" endif BLINK1_VERSION?="$(GIT_TAG)-$(OS)-$(MACH_TYPE)"