Makefile uses make_tools, mapjson takes out dir.

Removed generated files (layouts.h, map_groups.h) from git.
This commit is contained in:
Icedude907
2023-11-11 22:51:04 +13:00
parent 12a64fecb4
commit 7fa9819d9a
8 changed files with 131 additions and 1145 deletions
+15 -3
View File
@@ -1,12 +1,24 @@
# 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) $(CHECKTOOLDIRS)
tools: $(TOOLDIRS)
check-tools: $(CHECKTOOLDIRS)
$(TOOLDIRS):
@$(MAKE) -C $@
$(CHECKTOOLDIRS):
@$(MAKE) -C $@
clean-tools:
@$(foreach tooldir,$(TOOLDIRS),$(MAKE) clean -C $(tooldir);)