aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/erlang.mk b/erlang.mk
index f073155..f6960a4 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -101,9 +101,11 @@ define compile_dtl
init:stop()'
endef
-ebin/$(PROJECT).app: src/*.erl $(wildcard src/*.core) \
- $(wildcard src/*.xrl) $(wildcard src/*.yrl) \
- $(wildcard templates/*.dtl)
+ebin/$(PROJECT).app: $(shell find src -name \*.erl) \
+ $(shell find src -name \*.core) \
+ $(shell find src -name \*.xrl) \
+ $(shell find src -name \*.yrl) \
+ $(shell find templates -name \*.dtl 2>/dev/null)
@mkdir -p ebin/
$(if $(strip $(filter %.erl %.core,$?)), \
$(call compile_erl,$(filter %.erl %.core,$?)))