diff --git a/Makefile b/Makefile index e390b5636c..1e304a7744 100644 --- a/Makefile +++ b/Makefile @@ -235,7 +235,6 @@ PYTHON ?= $(VENV)/bin/python3 BUILD_DIR_REPLACE := sed -e 's|$$(BUILD_DIR)|$(BUILD_DIR)|g' # Audio tools -AUDIO_EXTRACT := $(PYTHON) tools/audio_extraction.py SAMPLECONV := tools/audio/sampleconv/sampleconv SBC := tools/audio/sbc SFC := tools/audio/sfc @@ -599,18 +598,14 @@ venv: $(PYTHON) -m pip install -U pip $(PYTHON) -m pip install -U -r requirements.txt -# TODO this is a temporary rule for testing audio, to be removed -setup-audio: - $(AUDIO_EXTRACT) -o $(EXTRACTED_DIR) -v $(VERSION) --read-xml - setup: venv $(MAKE) -C tools $(PYTHON) tools/decompress_baserom.py $(VERSION) $(PYTHON) tools/extract_baserom.py $(BASEROM_DIR)/baserom-decompressed.z64 $(EXTRACTED_DIR)/baserom -v $(VERSION) $(PYTHON) tools/extract_incbins.py $(EXTRACTED_DIR)/baserom $(EXTRACTED_DIR)/incbin -v $(VERSION) - $(PYTHON) tools/msgdis.py $(EXTRACTED_DIR)/baserom $(EXTRACTED_DIR)/text -v $(VERSION) - $(PYTHON) extract_assets.py $(EXTRACTED_DIR)/baserom $(EXTRACTED_DIR)/assets -v $(VERSION) -j$(N_THREADS) - $(AUDIO_EXTRACT) -o $(EXTRACTED_DIR) -v $(VERSION) --read-xml + $(PYTHON) tools/extract_text.py $(EXTRACTED_DIR)/baserom $(EXTRACTED_DIR)/text -v $(VERSION) + $(PYTHON) tools/extract_assets.py $(EXTRACTED_DIR)/baserom $(EXTRACTED_DIR)/assets -v $(VERSION) -j$(N_THREADS) + $(PYTHON) tools/extract_audio.py -o $(EXTRACTED_DIR) -v $(VERSION) --read-xml disasm: $(RM) -r $(EXPECTED_DIR) diff --git a/extract_assets.py b/tools/extract_assets.py similarity index 99% rename from extract_assets.py rename to tools/extract_assets.py index acf01cb71a..09519cb1ea 100755 --- a/extract_assets.py +++ b/tools/extract_assets.py @@ -8,7 +8,7 @@ import time import multiprocessing from pathlib import Path -from tools import version_config +import version_config def SignalHandler(sig, frame): diff --git a/tools/audio_extraction.py b/tools/extract_audio.py similarity index 100% rename from tools/audio_extraction.py rename to tools/extract_audio.py diff --git a/tools/msgdis.py b/tools/extract_text.py similarity index 100% rename from tools/msgdis.py rename to tools/extract_text.py