aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 8d601e7f5feffff73346566034933f3e17955a98 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                        
                   
             
 

        
         
                         
 


                          
      
                       
                         

                            
                         
 

                               
      
                                      

   



                                                           
 



                                                                     
        
                                                                            
                                                                    

     
                                    
# See LICENSE for licensing information.

DIALYZER = dialyzer
REBAR = rebar

all: app

app: deps
	@$(REBAR) compile

deps:
	@$(REBAR) get-deps

clean:
	@$(REBAR) clean
	rm -f test/*.beam
	rm -f erl_crash.dump

tests: clean app eunit ct

inttests: clean app eunit intct

eunit:
	@$(REBAR) eunit skip_deps=true

ct:
	@$(REBAR) ct skip_deps=true suites=http,ws

intct:
	@$(REBAR) ct skip_deps=true suites=http,ws,autobahn

build-plt:
	@$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
		--apps kernel stdlib sasl inets crypto public_key ssl

dialyze:
	@$(DIALYZER) --src src --plt .cowboy_dialyzer.plt -Werror_handling \
		-Wrace_conditions -Wunmatched_returns # -Wunderspecs

docs:
	@$(REBAR) doc skip_deps=true