From cce9914a13533ec833fe74bffd8692db89887008 Mon Sep 17 00:00:00 2001 From: SpinDizzy Date: Fri, 25 Dec 2020 08:29:18 +0000 Subject: [PATCH] Updated rules file. --- Makefiles/Rules.inc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefiles/Rules.inc b/Makefiles/Rules.inc index c4c6d6f..44ca692 100644 --- a/Makefiles/Rules.inc +++ b/Makefiles/Rules.inc @@ -213,15 +213,24 @@ INCLUDE_DIRS = $(sort $(foreach file,$(SRC_FILES),$(dir $(file)))) all: $(BIN_DIR)/$(OUTFILE) # -# Release target: used only to create official builds stamped with the SVN -# version number. +# Release targets: used only to create official builds stamped with the SVN +# version number. Double-colon rules should force ordered execution. +# The automated build script relies on these -- don't modify their output! # -release: set_version clean all +.PHONY: set_version +.PHONY: print_message +.PHONY: version +release:: set_version +release:: print_message +release:: clean +release:: all set_version: $(eval VERSION = 0.3a-svn-$(shell svnversion --no-newline)) $(eval SUPERMODEL_BUILD_FLAGS += -DSUPERMODEL_VERSION=\"$(VERSION)\") +print_message: $(info Building Supermodel Version $(VERSION)) - +version: set_version + @echo $(VERSION) $(BIN_DIR)/$(OUTFILE): $(BIN_DIR) $(OBJ_DIR) $(OBJ_FILES) $(info --------------------------------------------------------------------------------)