mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Compile cowboy_sub_protocol behaviour before modules using it
This commit is contained in:
parent
1f59607b7a
commit
76b5cfea3f
1 changed files with 3 additions and 1 deletions
4
Makefile
4
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue