From: eletuchy Date: Wed, 27 Feb 2008 17:41:05 +0000 (+0000) Subject: [thrift] adding dialyzer to erlang library Makefile X-Git-Tag: 0.2.0~949 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7dc23bce4bef0a826a0a737222029874334e4b47;p=common%2Fthrift.git [thrift] adding dialyzer to erlang library Makefile Summary: ... because static analysis can find bugs Reviewed By: cpiro Test Plan: cd src ; make dialyzer -j gape in awe at errors Revert Plan: sure git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665523 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/Makefile b/lib/erl/src/Makefile index 452cfee2..32b73957 100644 --- a/lib/erl/src/Makefile +++ b/lib/erl/src/Makefile @@ -52,7 +52,8 @@ WEB_TARGET=/var/yaws/www/$(APP_NAME) # ---------------------------------------------------- ERL_FLAGS += -ERL_COMPILE_FLAGS += -I../include -I../../fslib/include -I../../system_status/include +ERL_INCLUDE = -I../include -I../../fslib/include -I../../system_status/include +ERL_COMPILE_FLAGS += $(ERL_INCLUDE) # ---------------------------------------------------- # Targets @@ -75,6 +76,9 @@ clean: $(EBIN): mkdir $(EBIN) +dialyzer: $(TARGET_FILES) + dialyzer --src -r . $(ERL_INCLUDE) + # ---------------------------------------------------- # Special Build Targets # ----------------------------------------------------