From 5c9213dfc655e4a81ce5d85eeac29b1ce04e15e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Fri, 10 Aug 2018 16:15:56 +0200 Subject: [PATCH] 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. --- Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.include b/Makefile.include index 7736b8dde5..97f897b140 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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)