aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-14 16:56:40 +0300
committerLoïc Hoguin <[email protected]>2015-05-14 16:56:40 +0300
commita34d21e62d3b53c149882e1307f3f77def89c918 (patch)
tree7ec7b3ab3e16dee1959fb1c9b521566ebb66b708 /plugins
parentfb9768544c2a17ba8e858fe2ba50669b054a9945 (diff)
downloaderlang.mk-a34d21e62d3b53c149882e1307f3f77def89c918.tar.gz
erlang.mk-a34d21e62d3b53c149882e1307f3f77def89c918.tar.bz2
erlang.mk-a34d21e62d3b53c149882e1307f3f77def89c918.zip
Make sure auto patched dependencies recompile fine
Diffstat (limited to 'plugins')
-rw-r--r--plugins/c_src.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk
index 5616923..2a0d006 100644
--- a/plugins/c_src.mk
+++ b/plugins/c_src.mk
@@ -59,7 +59,10 @@ clean::
$(MAKE) -C $(C_SRC_DIR) clean
else
+
+ifeq ($(SOURCES),)
SOURCES := $(shell find $(C_SRC_DIR) -type f \( -name "*.c" -o -name "*.C" -o -name "*.cc" -o -name "*.cpp" \))
+endif
OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c