Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
removing dialyze make target from source tarball makefile; other smal…
Browse files Browse the repository at this point in the history
…l fixes
  • Loading branch information
Vlad Ionescu committed Jul 19, 2010
1 parent bf22b10 commit 014666c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
25 changes: 23 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ BROKER_HEADERS=$(wildcard $(BROKER_DIR)/$(INCLUDE_DIR)/*.hrl)
BROKER_SOURCES=$(wildcard $(BROKER_DIR)/$(SOURCE_DIR)/*.erl)
BROKER_DEPS=$(BROKER_HEADERS) $(BROKER_SOURCES)

INFILES=$(shell find . -name '*.app.in')
INTARGETS=$(patsubst %.in, %, $(INFILES))

include common.mk

run_in_broker: compile $(BROKER_DEPS) $(EBIN_DIR)/$(PACKAGE).app
Expand All @@ -47,6 +50,24 @@ clean: common_clean
%.app: %.app.in
sed -e 's:%%VSN%%:$(VERSION):g' < $< > $@

###############################################################################
## Dialyzer
###############################################################################

RABBIT_PLT=$(BROKER_DIR)/rabbit.plt

dialyze: $(RABBIT_PLT) $(TARGETS) $(TEST_TARGETS)
$(LIBS_PATH) erl -noshell -pa $(LOAD_PATH) -eval \
"rabbit_dialyzer:halt_with_code(rabbit_dialyzer:dialyze_files(\"$(RABBIT_PLT)\", \"$(TARGETS) $(TEST_TARGETS)\"))."

.PHONY: $(RABBIT_PLT)
$(RABBIT_PLT):
$(MAKE) -C $(BROKER_DIR) create-plt

###############################################################################
## Documentation
###############################################################################

doc: $(DOC_DIR)/index.html

$(DOC_DIR)/overview.edoc: $(SOURCE_DIR)/overview.edoc.in
Expand Down Expand Up @@ -74,9 +95,9 @@ test_common_package: common_package package prepare_tests
$(MAKE) stop_test_broker_node && \
$$OK

compile_tests: $(TEST_DIR) $(EBIN_DIR)/$(PACKAGE).app
compile_tests: $(TEST_TARGETS) $(EBIN_DIR)/$(PACKAGE).app

$(TEST_DIR)/%.beam: $(TEST_DIR)
$(TEST_TARGETS): $(TEST_DIR)

.PHONY: $(TEST_DIR)
$(TEST_DIR): $(DEPS_DIR)/$(COMMON_PACKAGE_DIR)
Expand Down
9 changes: 0 additions & 9 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ ALL_SSL_COVERAGE := true
SSL_BROKER_ARGS :=
endif

RABBIT_PLT=$(BROKER_DIR)/rabbit.plt

all: package

common_clean:
Expand All @@ -135,10 +133,6 @@ compile: $(TARGETS)
run: compile $(EBIN_DIR)/$(PACKAGE).app
$(LIBS_PATH) erl -pa $(LOAD_PATH)

dialyze: $(RABBIT_PLT) $(TARGETS) compile_tests
$(LIBS_PATH) erl -noshell -pa $(LOAD_PATH) -eval \
"rabbit_dialyzer:halt_with_code(rabbit_dialyzer:dialyze_files(\"$(RABBIT_PLT)\", \"$(TARGETS) $(TEST_TARGETS)\"))."

###############################################################################
## Packaging
###############################################################################
Expand Down Expand Up @@ -170,6 +164,3 @@ $(EBIN_DIR)/%.beam: $(SOURCE_DIR)/%.erl $(INCLUDES) $(DEPS_DIR)/$(COMMON_PACKAGE

$(DEPS_DIR):
mkdir -p $@

$(RABBIT_PLT):
$(MAKE) -C $(BROKER_DIR) create-plt

0 comments on commit 014666c

Please sign in to comment.