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

                                        
                   
             
 


        
                         

      
                       
                         

                            
                         

      
                       

   
                    
 



                                                                     
        


                                                                    
# See LICENSE for licensing information.

DIALYZER = dialyzer
REBAR = rebar

all: app

app:
	@$(REBAR) compile

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

tests: clean app eunit ct

eunit:
	@$(REBAR) eunit

ct:
	@$(REBAR) ct

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 \
		-Wbehaviours -Werror_handling \
		-Wrace_conditions -Wunmatched_returns # -Wunderspecs