diff options
Diffstat (limited to 'core/deps.mk')
-rw-r--r-- | core/deps.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk index 24eea71..103426d 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -148,6 +148,14 @@ define dep_autopatch_rebar.erl _ -> ok end end(), + fun() -> + case filelib:is_dir("$(DEPS_DIR)/$(1)/c_src") of + false -> ok; + true -> + Sources = [[" ./c_src/", S] || S <- filelib:wildcard("*.{c,C,cc,cpp}", "$(DEPS_DIR)/$(1)/c_src")], + Write(io_lib:format("SOURCES := ~s\n", [Sources])) + end + end(), Write("\n\nrebar_dep: pre-deps deps pre-app app\n"), Write("\npre-deps::\n"), Write("\npre-app::\n"), |