make split automatically

This commit is contained in:
Alex Bates 2020-12-22 16:25:05 +00:00
parent 90091e49db
commit f5dbfa2fe0

View File

@ -123,7 +123,7 @@ clean-code:
tools: tools:
make -C tools make -C tools
setup: clean submodules tools split $(LD_SCRIPT) setup: clean submodules tools $(LD_SCRIPT)
# tools/star-rod submodule intentionally omitted # tools/star-rod submodule intentionally omitted
submodules: submodules:
@ -131,8 +131,7 @@ submodules:
git submodule update --recursive git submodule update --recursive
split: split:
$(SPLAT) --modes ld bin Yay0 PaperMarioMapFS PaperMarioMessages img PaperMarioNpcSprites --new make $(LD_SCRIPT) -W $(SPLAT_YAML)
make $(GENERATED_HEADERS)
split-%: split-%:
$(SPLAT) --modes ld $* --verbose $(SPLAT) --modes ld $* --verbose
@ -263,7 +262,8 @@ include/sprite/npc/%.h: sprite/npc/%/SpriteSheet.xml tools/gen_sprite_animations
### Linker ### ### Linker ###
$(LD_SCRIPT): $(SPLAT_YAML) $(LD_SCRIPT): $(SPLAT_YAML)
$(SPLAT) --modes ld > /dev/null $(SPLAT) --modes ld bin Yay0 PaperMarioMapFS PaperMarioMessages img PaperMarioNpcSprites --new
make $(GENERATED_HEADERS)
$(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT) $(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT)
@mkdir -p $(shell dirname $@) @mkdir -p $(shell dirname $@)