aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 16ddee3..321b062 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,15 @@ clean-all: clean clean-docs
MODULES = $(shell ls src/*.erl | sed 's/src\///;s/\.erl/,/' | sed '$$s/.$$//')
-app:
- @mkdir -p ebin/
+app: ebin/$(PROJECT).app
@cat src/$(PROJECT).app.src \
| sed 's/{modules, \[\]}/{modules, \[$(MODULES)\]}/' \
> ebin/$(PROJECT).app
+
+ebin/$(PROJECT).app: src/*.erl
+ @mkdir -p ebin/
erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
- src/$(PROJECT)_transport.erl src/*.erl
+ src/$(PROJECT)_transport.erl $?
clean:
rm -rf ebin/