From 2d586fb72bb252950dcc98e86fa793f2f9a6c0db Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 19 Sep 2018 16:01:59 -0700 Subject: [PATCH] makefile: Fix test script search function to only return existing files --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index be3fcfe5..62c797fa 100644 --- a/makefile +++ b/makefile @@ -121,7 +121,7 @@ endif find_exe = $(abspath $(strip $(firstword $(foreach dir,$(strip $(subst :, ,$(PATH))),$(wildcard $(dir)/$(1)))))) find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip $(LIBPATH)),$(wildcard $(dir)/lib$(1).$(LIBEXT)))))) find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip $(INCPATH)),$(wildcard $(dir)/$(1).h))))) -find_test = $(abspath $(1)/tests/$(2)_test.ini) +find_test = $(abspath $(wildcard $(1)/tests/$(2)_test.ini)) ifneq ($(findstring Windows,$(OS)),) ifeq ($(findstring .exe,$(SHELL)),.exe) # MinGW