From 6a3bf18655384cbd534308104d82b1ae0f66c228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 2 Jul 2015 18:35:44 +0200 Subject: Reduce dependency on external programs This commit implements a core_find and core_ls function that can be used to list files recursively or not. A few other minute changes are included and a couple hacks removed. --- plugins/c_src.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/c_src.mk') diff --git a/plugins/c_src.mk b/plugins/c_src.mk index 34e4952..98417ed 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -64,7 +64,7 @@ clean:: else ifeq ($(SOURCES),) -SOURCES := $(shell find $(C_SRC_DIR) -type f \( -name "*.c" -o -name "*.C" -o -name "*.cc" -o -name "*.cpp" \)) +SOURCES := $(sort $(call core_find,$(C_SRC_DIR)/,*.c *.C *.cc *.cpp)) endif OBJECTS = $(addsuffix .o, $(basename $(SOURCES))) -- cgit v1.2.3