aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElian Gidoni <[email protected]>2013-08-20 12:13:00 -0300
committerElian Gidoni <[email protected]>2013-08-20 12:13:00 -0300
commite505ccf0f1985ece7ae849d7c34b61bde8a2b53f (patch)
tree97a97f062ba389154b1422e7cbc8b56fd069e369
parente2d676f36eefb396c06442b490dcf0aa259152f7 (diff)
downloaderlang.mk-e505ccf0f1985ece7ae849d7c34b61bde8a2b53f.tar.gz
erlang.mk-e505ccf0f1985ece7ae849d7c34b61bde8a2b53f.tar.bz2
erlang.mk-e505ccf0f1985ece7ae849d7c34b61bde8a2b53f.zip
Compile files from src/ subdirs
-rw-r--r--erlang.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/erlang.mk b/erlang.mk
index 8cc8b03..147e31e 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -99,9 +99,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,$?)))