Optimize Makefile.

Don't do recursive makes for COMPARE and MODERN, use minimal makefile for making tools.
This commit is contained in:
luckytyphlosion
2021-06-01 20:40:11 -04:00
parent 9da2142a39
commit a839463c84
2 changed files with 35 additions and 15 deletions

12
make_tools.mk Normal file
View File

@@ -0,0 +1,12 @@
TOOLDIRS := $(filter-out tools/agbcc tools/binutils,$(wildcard tools/*))
TOOLBASE = $(TOOLDIRS:tools/%=%)
TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE))
.PHONY: all $(TOOLDIRS)
all: $(TOOLDIRS)
@:
$(TOOLDIRS):
@$(MAKE) -C $@