-
-
Save gleber/3658828 to your computer and use it in GitHub Desktop.
Dialyzer Example Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: Makefile; fill-column: 80; comment-column: 75; -*- | |
ERL = $(shell which erl) | |
ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/*/ebin | |
REBAR=$(shell which rebar) | |
ifeq ($(REBAR),) | |
$(error "Rebar not available on this system") | |
endif | |
DEPSOLVER_PLT=$(CURDIR)/.depsolver_plt | |
.PHONY: dialyzer typer clean distclean | |
$(DEPSOLVER_PLT): | |
dialyzer --output_plt $(DEPSOLVER_PLT) --build_plt \ | |
--apps erts kernel stdlib crypto public_key -r deps | |
dialyzer: $(DEPSOLVER_PLT) | |
dialyzer --plt $(DEPSOLVER_PLT) -Wrace_conditions --src src | |
typer: $(DEPSOLVER_PLT) | |
typer --plt $(DEPSOLVER_PLT) -r ./src | |
clean: | |
$(REBAR) clean | |
distclean: clean | |
rm $(DEPSOLVER_PLT) | |
rm -rvf $(CURDIR)/deps/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment