Makefile: Implement `NO_COPY` flag (useful for iterative debugging)

This commit is contained in:
GammaTendonNine 2020-11-23 03:12:19 -06:00
parent b5fc0c3289
commit 9e9215c4b0
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,9 @@ CONTROLLER_API ?= SDL2
LEGACY_RES ?= 0
BASEDIR ?= res
# Copy assets to BASEDIR? (useful for iterative debugging)
NO_COPY ?= 0
# Automatic settings for PC port(s)
WINDOWS_BUILD ?= 0
@ -620,9 +623,11 @@ $(BASEPACK_LST): $(EXE)
@find texts -name \*.json -exec echo "{} {}" >> $(BASEPACK_LST) \;
@find db -name \*.* -exec echo "{} {}" >> $(BASEPACK_LST) \;
ifneq ($(NO_COPY),1)
# prepares the resource ZIP with base data
$(BASEPACK_PATH): $(BASEPACK_LST)
@$(PYTHON) $(TOOLS_DIR)/mkzip.py $(BASEPACK_LST) $(BASEPACK_PATH) $(LEGACY_RES)
endif
clean:
$(RM) -r $(BUILD_DIR_BASE)