From 0fc1cc89da5aa5571adfe4b3576f5b517416ba8b Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 26 Mar 2022 17:58:35 -0700 Subject: [PATCH] Turn off GNU Make's historical "implicit" rules. They add a ton of overhead and we don't use 'em --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 42243cc2..8ea631cf 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,24 @@ +# Reset a bunch of historical GNU make implicit rules that we never +# use, but which have a disastrous impact on performance +# +# --no-builtin-rules in MAKEFLAGS apparently came in with GNU Make 4, +# which is newer than what Apple ships +MAKEFLAGS += --no-builtin-rules + +# These lines reset the implicit rules we really care about +%:: %,v + +%:: RCS/%,v + +%:: RCS/% + +%:: s.% + +%:: SCCS/s.% + +.SUFFIXES: + + include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/etc/makefiles/arduino-cli.mk # Set up an argument for passing to the simulator tests in docker