This is needed for the compilation to not complain about missing
Makefile.version.
release: $(RELEASE_BASENAME).zip
$(RELEASE_BASENAME):: lib
+ @echo 'Get version from git'
+ mkdir -p $@/rpp-test-sw/Debug
+ $(MAKE) -C $@/rpp-test-sw/Debug -f $(CURDIR)/rpp-test-sw/Makefile.version version.h
+
mkdir -p $@/rpp-lib/rpp/
mkdir -p $@/rpp-lib/os/7.0.2_tms570
mkdir -p $@/rpp-lib/lwip/src
cp -r rpp-lib/os/7.0.2_tms570/include $@/rpp-lib/os/7.0.2_tms570/include
cp -r rpp-lib/lwip/src/include $@/rpp-lib/lwip/src/include
-
-
lib:
$(MAKE) -C rpp-lib/Release
VERSION:=$(shell "$(GIT)" describe)\r
VERSION:=$(if $(VERSION),$(VERSION),unknown)\r
\r
+ifneq ($(VERSION),unknown)\r
+# Always update version.h if we are in a git repo. Otherwise create\r
+# the file only if it does not exist.\r
.PHONY: version.h\r
+endif\r
\r
version.h:\r
ifeq ($(OS),Windows_NT)\r