mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-02 09:33:29 +00:00
Merge pull request #627 from ejoerns/pull-req/git-relstr-fix
Makefile.include: Fix git version string generation for external projects
This commit is contained in:
commit
ea2c407aeb
@ -153,7 +153,7 @@ CFLAGS += ${addprefix -I,$(SOURCEDIRS) $(CONTIKI)}
|
|||||||
### Check for a git repo and pass version if found
|
### Check for a git repo and pass version if found
|
||||||
### git.exe in Windows cmd shells may require no stderr redirection
|
### git.exe in Windows cmd shells may require no stderr redirection
|
||||||
#RELSTR=${shell git describe --tags}
|
#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),)
|
ifneq ($(RELSTR),)
|
||||||
CFLAGS += -DCONTIKI_VERSION_STRING=\"Contiki-$(RELSTR)\"
|
CFLAGS += -DCONTIKI_VERSION_STRING=\"Contiki-$(RELSTR)\"
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user