From 4bd3047d3fbac6ebe9678a519a6c1b3d7679c4e9 Mon Sep 17 00:00:00 2001 From: Darek Konopka <69826267+DRK-512@users.noreply.github.com> Date: Tue, 24 Jan 2023 18:59:02 -0500 Subject: [PATCH] Update Makefile make setup implemented --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dbf54f56b56..9db5d04579f 100644 --- a/Makefile +++ b/Makefile @@ -179,7 +179,17 @@ $(ELF_SHIFT): $(DOL) $(DOL_SHIFT): $(ELF_SHIFT) | tools $(ELF2DOL) $< $@ $(SDATA_PDHR) $(SBSS_PDHR) $(TARGET_COL) @cp -v $(DOL_SHIFT) $(DOL) - + +setup: + @if [ ! -d tools/mwcc_compiler/ ]; then \ + mkdir tools/mwcc_compiler/ ; \ + wget https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip -P tools/mwcc_compiler/ ; \ + unzip tools/mwcc_compiler/GC_WII_COMPILERS.zip "GC/*" -d tools/mwcc_compiler/ ; \ + mv tools/mwcc_compiler/GC/* tools/mwcc_compiler/ ; \ + rm tools/mwcc_compiler/GC_WII_COMPILERS.zip ; \ + rmdir tools/mwcc_compiler/GC ; \ + fi + shift: dirs $(DOL_SHIFT) game: shift