mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: Include VERSION file for release
When downloading the release archive and building an example, the RIOT_VERSION string is not set to "Version 2018.04" but to Version: UNKNOWN (builddir: /home/me/Downloads/RIOT-2018.04) This allows sourcing a global VERSION file to manually set it before releases.
This commit is contained in:
parent
e91e0a7807
commit
5c9213dfc6
@ -287,6 +287,9 @@ endif
|
||||
# Feature test default CFLAGS and LINKFLAGS for the set compiled.
|
||||
include $(RIOTMAKE)/cflags.inc.mk
|
||||
|
||||
# Include VERSION for releases
|
||||
-include $(RIOTBASE)/VERSION
|
||||
|
||||
# make the RIOT version available to the program
|
||||
ifeq ($(origin RIOT_VERSION), undefined)
|
||||
GIT_STRING := $(shell git --git-dir="$(RIOTBASE)/.git" describe --always --abbrev=4 --dirty=-`hostname` 2> /dev/null)
|
||||
|
Loading…
Reference in New Issue
Block a user