From 76b5cfea3f4a755b31a95b24176afeb87adaf442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 20 Feb 2013 11:14:28 +0100 Subject: Compile cowboy_sub_protocol behaviour before modules using it --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d910a9..7ce65e2 100644 --- a/Makefile +++ b/Makefile @@ -36,10 +36,12 @@ app: ebin/$(PROJECT).app | sed 's/{modules, \[\]}/{modules, \[$(MODULES)\]}/' \ > ebin/$(PROJECT).app +COMPILE_FIRST = src/cowboy_middleware.erl src/cowboy_sub_protocol.erl + ebin/$(PROJECT).app: src/*.erl @mkdir -p ebin/ $(erlc_verbose) erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \ - src/$(PROJECT)_middleware.erl $? + $(COMPILE_FIRST) $? clean: $(gen_verbose) rm -rf ebin/ test/*.beam erl_crash.dump -- cgit v1.2.3