@@ -74,6 +74,9 @@ include compile.mk | |||||
dist: all | dist: all | ||||
ifndef VERSION | |||||
$(error VERSION must be defined when calling make) | |||||
endif | |||||
rm -rf dist | rm -rf dist | ||||
$(MAKE) -C plugins/Fundamental dist | $(MAKE) -C plugins/Fundamental dist | ||||
@@ -1,5 +1,6 @@ | |||||
VERSION ?= dev | |||||
ifdef VERSION | |||||
FLAGS += -DVERSION=$(VERSION) | FLAGS += -DVERSION=$(VERSION) | ||||
endif | |||||
# Generate dependency files alongside the object files | # Generate dependency files alongside the object files | ||||
FLAGS += -MMD | FLAGS += -MMD | ||||
@@ -4,7 +4,12 @@ | |||||
namespace rack { | namespace rack { | ||||
std::string gApplicationName = "VCV Rack"; | std::string gApplicationName = "VCV Rack"; | ||||
std::string gApplicationVersion = TOSTRING(VERSION); | |||||
std::string gApplicationVersion = | |||||
#ifdef VERSION | |||||
TOSTRING(VERSION); | |||||
#else | |||||
"dev"; | |||||
#endif | |||||
std::string gApiHost = "http://api.vcvrack.com"; | std::string gApiHost = "http://api.vcvrack.com"; | ||||
RackWidget *gRackWidget = NULL; | RackWidget *gRackWidget = NULL; | ||||