From 7c2fa2b68e2deb7c62d0a0dd023d74a1f1b22e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 18 Jun 2015 12:10:36 +0200 Subject: Add RABBITMQ_SERVER_PATCH for rabbitmq-server support --- core/deps.mk | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'core/deps.mk') diff --git a/core/deps.mk b/core/deps.mk index c17189e..ae786da 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -529,10 +529,20 @@ endif fi ifeq ($(filter $(1),$(NO_AUTOPATCH)),) @if [ "$(RABBITMQ_CLIENT_PATCH)" ]; then \ - echo " PATCH Downloading extra RabbitMQ repositories..."; \ - git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \ - git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbit; \ - ln -s $(DEPS_DIR)/rabbit $(DEPS_DIR)/rabbitmq-server; \ + if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \ + echo " PATCH Downloading rabbitmq-codegen"; \ + git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \ + fi; \ + if [ ! -d $(DEPS_DIR)/rabbit ]; then \ + echo " PATCH Downloading rabbitmq-server"; \ + git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbit; \ + ln -s $(DEPS_DIR)/rabbit $(DEPS_DIR)/rabbitmq-server; \ + fi \ + elif [ "$(RABBITMQ_SERVER_PATCH)" ]; then \ + if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \ + echo " PATCH Downloading rabbitmq-codegen"; \ + git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \ + fi \ else \ $(call dep_autopatch,$(1)) \ fi -- cgit v1.2.3