From c0d6e890c184b5a35891358dc4733cd552e50dab Mon Sep 17 00:00:00 2001 From: Daniel Goertzen Date: Thu, 15 Oct 2015 13:51:13 -0500 Subject: fix multiple patterns used on core_find 'find', the underlying command of core_find, does not support multiple patterns after -name. This patch fixes multi-pattern use in c_src.mk by calling core_find once for each pattern. --- plugins/c_src.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c_src.mk b/plugins/c_src.mk index efe7bfe..a74d945 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -60,7 +60,7 @@ clean:: else ifeq ($(SOURCES),) -SOURCES := $(sort $(call core_find,$(C_SRC_DIR)/,*.c *.C *.cc *.cpp)) +SOURCES := $(sort $(foreach pat,*.c *.C *.cc *.cpp,$(call core_find,$(C_SRC_DIR)/,$(pat)))) endif OBJECTS = $(addsuffix .o, $(basename $(SOURCES))) -- cgit v1.2.3