forked from rabbitmq/rabbitmq-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (39 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
MVN ?= mvn
MVN_FLAGS ?=
ifndef DEPS_DIR
ifneq ($(wildcard ../../UMBRELLA.md),)
DEPS_DIR = ..
else
DEPS_DIR = deps
endif
endif
MVN_FLAGS += -Ddeps.dir="$(abspath $(DEPS_DIR))"
.PHONY: all deps tests clean distclean
all: deps
$(MVN) $(MVN_FLAGS) compile
deps: $(DEPS_DIR)/rabbitmq_codegen
@:
dist: clean
$(MVN) $(MVN_FLAGS) -DskipTests=true -Dmaven.javadoc.failOnError=false package javadoc:javadoc
$(DEPS_DIR)/rabbit:
git clone https://github.com/rabbitmq/rabbitmq-server.git $@
$(MAKE) -C $@ fetch-deps DEPS_DIR="$(abspath $(DEPS_DIR))"
$(DEPS_DIR)/rabbitmq_ct_helpers:
git clone https://github.com/rabbitmq/rabbitmq-ct-helpers.git "$@"
$(DEPS_DIR)/rabbitmq_codegen:
git clone https://github.com/rabbitmq/rabbitmq-codegen.git "$@"
tests: deps
$(MVN) $(MVN_FLAGS) verify
deploy:
$(MVN) $(MVN_FLAGS) deploy
clean:
$(MVN) $(MVN_FLAGS) clean
distclean: clean
$(MAKE) -C $(DEPS_DIR)/rabbitmq_codegen clean
.PHONY: cluster-other-node
cluster-other-node:
$(exec_verbose) $(RABBITMQCTL) -n $(OTHER_NODE) stop_app
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) reset
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) join_cluster \
$(if $(MAIN_NODE),$(MAIN_NODE),$(RABBITMQ_NODENAME)@$$(hostname -s))
$(verbose) $(RABBITMQCTL) -n $(OTHER_NODE) start_app