mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #841 from gebart/build-git-tag-io-reduce
Makefile.include: Reduce I/O load (and build time) by assigning git description variable once.
This commit is contained in:
commit
a50bc08adc
@ -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 --git-dir ${CONTIKI}/.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
|
||||
|
Loading…
Reference in New Issue
Block a user