aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Goertzen <[email protected]>2015-10-15 13:51:13 -0500
committerDaniel Goertzen <[email protected]>2015-10-15 13:51:13 -0500
commitc0d6e890c184b5a35891358dc4733cd552e50dab (patch)
tree3dd24715e963b83b386c3ed8fa48a80672803a5b
parentb58142842e1a888f80042b9decebcede434bec90 (diff)
downloaderlang.mk-c0d6e890c184b5a35891358dc4733cd552e50dab.tar.gz
erlang.mk-c0d6e890c184b5a35891358dc4733cd552e50dab.tar.bz2
erlang.mk-c0d6e890c184b5a35891358dc4733cd552e50dab.zip
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.
-rw-r--r--plugins/c_src.mk2
1 files changed, 1 insertions, 1 deletions
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)))