aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/erlang.mk b/erlang.mk
index ecd4d54..8a27f67 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -48,14 +48,15 @@ all: deps app
clean-all: clean clean-deps clean-docs
$(gen_verbose) rm -rf .$(PROJECT).plt $(DEPS_DIR) logs
-MODULES = $(shell ls src/*.erl | sed 's/src\///;s/\.erl/,/' | sed '$$s/.$$//')
+MODULES = $(shell ls src/*.erl $(wildcard src/*.core) \
+ | sed 's/src\///;s/\.core/,/;s/\.erl/,/' | sed '$$s/.$$//')
app: ebin/$(PROJECT).app
$(appsrc_verbose) cat src/$(PROJECT).app.src \
| sed 's/{modules, \[\]}/{modules, \[$(MODULES)\]}/' \
> ebin/$(PROJECT).app
-ebin/$(PROJECT).app: src/*.erl
+ebin/$(PROJECT).app: src/*.erl $(wildcard src/*.core)
@mkdir -p ebin/
$(erlc_verbose) ERL_LIBS=deps erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
$(COMPILE_FIRST_PATHS) $?