diff options
author | Loïc Hoguin <[email protected]> | 2013-02-20 11:14:28 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-02-20 11:14:28 +0100 |
commit | 76b5cfea3f4a755b31a95b24176afeb87adaf442 (patch) | |
tree | 03212cb924f4795c833f5e2ce495627d96793768 /Makefile | |
parent | 1f59607b7adcff49d2407f53eead75deb4f8b239 (diff) | |
download | cowboy-76b5cfea3f4a755b31a95b24176afeb87adaf442.tar.gz cowboy-76b5cfea3f4a755b31a95b24176afeb87adaf442.tar.bz2 cowboy-76b5cfea3f4a755b31a95b24176afeb87adaf442.zip |
Compile cowboy_sub_protocol behaviour before modules using it
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |