summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_mqtt/test/java_SUITE_data/Makefile
blob: e2f9748eb2c3d9520603e8a7b6e8c4c3ffd11ddb (plain)
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
export PATH :=$(CURDIR):$(PATH)
HOSTNAME := $(shell hostname)
MVN_FLAGS += -Ddeps.dir="$(abspath $(DEPS_DIR))" \
			 -Dhostname=$(HOSTNAME) \
			 -Dcerts.dir=$(SSL_CERTS_DIR) \
			 -Dmqtt.ssl.port=$(MQTT_SSL_PORT) \
			 -Dmqtt.port=$(MQTT_PORT) \
			 -Dmqtt.port.2=$(MQTT_PORT_2) \
			 -Dmqtt.port.3=$(MQTT_PORT_3) \
			 -Damqp.port=$(AMQP_PORT)

.PHONY: deps tests clean distclean

deps:
	mkdir -p lib
	@mvnw dependency:copy-dependencies -DoutputDirectory=lib

tests:
	# Note: to run a single test
	# @mvnw -q $(MVN_FLAGS) -Dtest=MqttTest#subscribeMultiple test
	@mvnw -q $(MVN_FLAGS) test

clean:
	@mvnw clean

distclean: clean
	rm -f lib/*.jar