From 7dc23bce4bef0a826a0a737222029874334e4b47 Mon Sep 17 00:00:00 2001 From: eletuchy Date: Wed, 27 Feb 2008 17:41:05 +0000 Subject: [PATCH] [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 --- lib/erl/src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 # ---------------------------------------------------- -- 2.17.1