Просмотр исходного кода

Only apply RabbitMQ patches for rabbit projects

Loïc Hoguin 10 лет назад
Родитель
Сommit
7bcfd93c3d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      core/deps.mk

+ 2 - 2
core/deps.mk

@@ -528,7 +528,7 @@ endif
 		cd $(DEPS_DIR)/$(1) && ./configure; \
 	fi
 ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
-	@if [ "$(RABBITMQ_CLIENT_PATCH)" ]; then \
+	@if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_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; \
@@ -538,7 +538,7 @@ ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
 			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 \
+	elif [ "$(1)" = "rabbit" -a "$(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; \