Makefile.include: Setting RELSTR based on git tags requires to be in

the contiki directory
ico
Enrico Joerns 2014-01-22 20:51:55 +01:00
parent a7dbf46b8e
commit 29894bbdfa
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ CFLAGS += ${addprefix -I,$(SOURCEDIRS) $(CONTIKI)}
### Check for a git repo and pass version if found
### git.exe in Windows cmd shells may require no stderr redirection
#RELSTR=${shell git describe --tags}
RELSTR=${shell git describe --tags 2>/dev/null}
RELSTR=${shell git --git-dir ${CONTIKI}/.git describe --tags 2>/dev/null}
ifneq ($(RELSTR),)
CFLAGS += -DCONTIKI_VERSION_STRING=\"Contiki-$(RELSTR)\"
endif