35 lines
576 B
Makefile
35 lines
576 B
Makefile
.PHONY: all release compile test clean rel doc build-plt dialyzer
|
|
|
|
PROJECT = fusco
|
|
|
|
REBAR := ./rebar
|
|
DIALYZER = dialyzer
|
|
|
|
APPS = kernel stdlib sasl inets ssl public_key crypto compiler
|
|
|
|
all: compile doc
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
doc:
|
|
$(REBAR) doc
|
|
|
|
test: compile
|
|
$(REBAR) eunit ct
|
|
|
|
release: all dialyze test
|
|
$(REBAR) release
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
build-plt: compile
|
|
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
|
|
--apps $(APPS)
|
|
|
|
dialyzer:
|
|
@$(DIALYZER) --fullpath --src ./src \
|
|
--plt .$(PROJECT).plt --no_native \
|
|
-Werror_handling #-Wrace_conditions
|