From 72134ddd48acd2fbb3c59f03bb13cb307e8c9929 Mon Sep 17 00:00:00 2001 From: Alissa Huskey Date: Tue, 12 Nov 2019 22:38:44 -0700 Subject: [PATCH] Don't hardcode the mpide_dir in TEST=1 Set DEPENDENCIES_MPIDE_DIR to the the newest directory in DEPENDENCIES_DIR matching mpide-0023-* --- Common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common.mk b/Common.mk index b17fe09..b534ae3 100644 --- a/Common.mk +++ b/Common.mk @@ -64,7 +64,7 @@ $(call show_config_variable,CURRENT_OS,[AUTODETECTED]) ifneq ($(TEST),) DEPENDENCIES_DIR = /var/tmp/Arduino-Makefile-testing-dependencies - DEPENDENCIES_MPIDE_DIR = $(DEPENDENCIES_DIR)/mpide-0023-linux64-20130817-test + DEPENDENCIES_MPIDE_DIR = $(shell find $(DEPENDENCIES_DIR) -name 'mpide-0023-*' -type d -exec ls -dt {} + | head -n 1) ifeq ($(MPIDE_DIR),) MPIDE_DIR = $(DEPENDENCIES_MPIDE_DIR) endif