mirror of https://github.com/sm64pc/sm64pc.git
Makefile: Implement `NO_COPY` flag (useful for iterative debugging)
This commit is contained in:
parent
b5fc0c3289
commit
9e9215c4b0
5
Makefile
5
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue