From f29c9d2d6afc96988da0647e9224b8ed109beb88 Mon Sep 17 00:00:00 2001 From: Damien Wilson Date: Sun, 23 Feb 2020 19:50:26 -0800 Subject: [PATCH] Include JSON formatter binary in release. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 57bf265f32de9..32aa5d037337a 100644 --- a/Makefile +++ b/Makefile @@ -165,6 +165,13 @@ ifdef MSYSTEM MSYS2 = 1 endif +# Determine JSON formatter binary name +ifeq ($(MSYS2), 1) + JSON_FORMATTER_BIN=tools/format/json_formatter.exe +else + JSON_FORMATTER_BIN=tools/format/json_formatter.cgi +endif + # Enable backtrace by default ifndef BACKTRACE # ...except not on native Windows builds, because the relevant headers are @@ -362,7 +369,7 @@ endif CXXFLAGS += $(WARNINGS) $(DEBUG) $(DEBUGSYMS) $(PROFILE) $(OTHERS) -MMD -MP TOOL_CXXFLAGS = -DCATA_IN_TOOL -BINDIST_EXTRAS += README.md data doc LICENSE.txt LICENSE-OFL-Terminus-Font.txt VERSION.txt +BINDIST_EXTRAS += README.md data doc LICENSE.txt LICENSE-OFL-Terminus-Font.txt VERSION.txt $(JSON_FORMATTER_BIN) BINDIST = $(BUILD_PREFIX)cataclysmdda-$(VERSION).tar.gz W32BINDIST = $(BUILD_PREFIX)cataclysmdda-$(VERSION).zip BINDIST_CMD = tar --transform=s@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@ -czvf $(BINDIST) $(BINDIST_DIR) @@ -1067,11 +1074,6 @@ endif JSON_FILES = $(shell find data -name "*.json" | sed "s|^\./||") JSON_WHITELIST = $(filter-out $(shell cat json_blacklist), $(JSON_FILES)) -ifeq ($(MSYS2), 1) - JSON_FORMATTER_BIN=tools/format/json_formatter.exe -else - JSON_FORMATTER_BIN=tools/format/json_formatter.cgi -endif style-json: $(JSON_WHITELIST)