[Build System Rewrite] mapjson now takes output directory parameters. (#1949)

This commit is contained in:
Icedude907
2024-08-30 06:01:01 +12:00
committed by GitHub
parent bc7c46ffe2
commit 625a006cab
8 changed files with 124 additions and 1140 deletions

View File

@@ -1,12 +1,20 @@
# This controls building executables in the `tools` folder.
# Can be invoked through the `Makefile` or standalone.
MAKEFLAGS += --no-print-directory
# Inclusive list. If you don't want a tool to be built, don't add it here.
TOOLDIRS := tools/aif2pcm tools/bin2c tools/gbafix tools/gbagfx tools/jsonproc tools/mapjson tools/mid2agb tools/preproc tools/ramscrgen tools/rsfont tools/scaninc
TOOLS_DIR := tools
TOOL_NAMES := aif2pcm bin2c gbafix gbagfx jsonproc mapjson mid2agb preproc ramscrgen rsfont scaninc
.PHONY: all $(TOOLDIRS)
TOOLDIRS := $(TOOL_NAMES:%=$(TOOLS_DIR)/%)
all: $(TOOLDIRS)
.PHONY: tools check-tools clean-tools $(TOOLDIRS)
tools: $(TOOLDIRS)
$(TOOLDIRS):
@$(MAKE) -C $@
clean-tools:
@$(foreach tooldir,$(TOOLDIRS),$(MAKE) clean -C $(tooldir);)