Apply some of our makefile optimization techniques to the test suite

pull/1144/head
Jesse Vincent 3 years ago
parent e2ca8ee815
commit dbeed3c767
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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:
mkfile_dir := $(dir $(lastword ${MAKEFILE_LIST})) mkfile_dir := $(dir $(lastword ${MAKEFILE_LIST}))
top_dir := $(abspath $(mkfile_dir)../..) top_dir := $(abspath $(mkfile_dir)../..)

@ -1,3 +1,22 @@
# 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:
tests_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))) tests_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST})))
@ -13,7 +32,7 @@ TEST_PATH ?= ./
export FQBN ?= keyboardio:virtual:model01 export FQBN ?= keyboardio:virtual:model01
TESTS ?= $(shell cd $(tests_dir); find ${TEST_PATH} -name '*.ino' -exec dirname {} \;) TESTS := $(shell cd $(tests_dir); find ${TEST_PATH} -name '*.ino' -exec dirname {} \;)
include $(top_dir)/etc/makefiles/arduino-cli.mk include $(top_dir)/etc/makefiles/arduino-cli.mk

Loading…
Cancel
Save