diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2021-06-01 20:40:11 -0400 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2021-06-01 20:40:11 -0400 |
commit | a839463c849679974c986bf9c9c260eff0e94cb7 (patch) | |
tree | 3a61749b777acd20f8827014f017b358f723f553 /make_tools.mk | |
parent | 9da2142a391d991490a7a9de9ada6f12868049a4 (diff) |
Optimize Makefile.
Don't do recursive makes for COMPARE and MODERN, use minimal makefile for making tools.
Diffstat (limited to 'make_tools.mk')
-rw-r--r-- | make_tools.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/make_tools.mk b/make_tools.mk new file mode 100644 index 000000000..82a482bca --- /dev/null +++ b/make_tools.mk @@ -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 $@ |