From 7cfd053fb7506da03a034dc7dd09dc0b5e4d8ced Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Thu, 22 Oct 2020 03:09:23 +0100 Subject: [PATCH] improve make speed --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 159cbb970f..38b35929be 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ SHELL=/bin/bash -o pipefail +MAKEFLAGS += --no-builtin-rules +MAKEFLAGS += --no-builtin-variables + ################ Target Executable and Sources ############### # BUILD_DIR is location where all build artifacts are placed @@ -57,8 +60,6 @@ LDFLAGS = -T undefined_syms.txt -T undefined_funcs.txt -T $(LD_SCRIPT) -Map $ ######################## Targets ############################# -$(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(DATA_DIRS) $(ASSETS_FS_DIRS) ,$(shell mkdir -p build/$(dir))) - default: all LD_SCRIPT = $(TARGET).ld @@ -67,6 +68,7 @@ all: $(TARGET).ld $(BUILD_DIR) $(TARGET).z64 verify clean: rm -rf $(BUILD_DIR) $(TARGET).z64 + mkdir -p $(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(DATA_DIRS) $(ASSETS_FS_DIRS),build/$(dir) submodules: git submodule update --init --recursive