0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/Makefile
Loïc Hoguin b2243aa544 Optimize cowboy_protocol
* #state{} changes are avoided where possible
* #state{} is now smaller and use less memory
* the Req object is created only after the whole request is parsed
* parsing makes use of a single binary match context
* external calls are avoided in the critical path
* URL fragment is now extracted properly (retrieval API next commit)
* argument orders to local functions modified to avoid extra operations
* dispatching waits as long as possible before tokenizing host/path
* handler opts are no longer shown in the error messages except in init

The code may not look as beautiful as it was before. But it really
is, for parsing code. The parsing section of the file may be skipped
if your eyes start to burn.
2012-09-26 14:20:29 +02:00

59 lines
1.1 KiB
Makefile

# See LICENSE for licensing information.
PROJECT = cowboy
DIALYZER = dialyzer
REBAR = rebar
all: app
# Application.
deps/ranch:
@$(REBAR) get-deps
app: deps/ranch
@$(REBAR) compile
clean:
@$(REBAR) clean
rm -f test/*.beam
rm -f erl_crash.dump
docs: clean-docs
@$(REBAR) doc skip_deps=true
clean-docs:
rm -f doc/*.css
rm -f doc/*.html
rm -f doc/*.png
rm -f doc/edoc-info
# Tests.
deps/proper:
@$(REBAR) -C rebar.tests.config get-deps
cd deps/proper && $(REBAR) compile
tests: clean deps/proper app eunit ct
inttests: clean deps/proper app eunit intct
eunit:
@$(REBAR) -C rebar.tests.config eunit skip_deps=true
ct:
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws
intct:
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws,autobahn
# Dialyzer.
build-plt:
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
--apps kernel stdlib sasl inets crypto public_key ssl deps/*
dialyze:
@$(DIALYZER) --src src --plt .$(PROJECT).plt --no_native \
-Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs