ISO packaging script

This commit is contained in:
jdflyer
2022-12-30 17:45:12 -07:00
parent 39fd70f8e1
commit f453841a5c
3 changed files with 121 additions and 5 deletions
+7 -2
View File
@@ -21,6 +21,7 @@ TARGET := dolzel2
BUILD_PATH := build
BUILD_DIR := $(BUILD_PATH)/$(TARGET)
TARGET_ISO := $(BUILD_DIR)/dolzel2.iso
SRC_DIRS := $(shell find src/ libs/ -type f -name '*.cpp')
ASM_DIRS := $(shell find asm/ -type f -name '*.s')
@@ -129,6 +130,7 @@ clean:
clean_game:
rm -r -f -d $(TARGET)/game
rm -r -f -d $(TARGET_ISO)
clean_assets:
rm -r -f -d game
@@ -173,7 +175,10 @@ shift: dirs $(DOL_SHIFT)
game: shift
$(MAKE) rels
@mkdir -p game
@$(PYTHON) tools/package_game_assets.py game $(BUILD_DIR)
@$(PYTHON) tools/package_game_assets.py ./game $(BUILD_DIR)
iso: game
@$(PYTHON) tools/packageISO.py $(BUILD_DIR)/game/ $(TARGET_ISO)
rungame: game
@echo If you are playing on a shifted game make sure Hyrule Field Speed hack is disabled in dolphin!
@@ -206,4 +211,4 @@ include tools/elf2dol/Makefile
### Debug Print ###
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true
.PHONY: default all dirs clean tools docs shift game rungame print-%
.PHONY: default all dirs clean tools docs shift game rungame iso print-%