summaryrefslogtreecommitdiff
path: root/rabbitmq-components.mk
diff options
context:
space:
mode:
authorLuke Bakken <lbakken@pivotal.io>2020-07-29 10:02:05 -0700
committerLuke Bakken <lbakken@pivotal.io>2020-07-29 10:02:05 -0700
commit5ebab992f734bbe7352c550686f48fca15ba6c5d (patch)
treeb421f34b7d7996de56585abf72a8acc01377b318 /rabbitmq-components.mk
parent098a06a1fd6bdeaa866c51ca571e11779fb67885 (diff)
downloadrabbitmq-server-git-5ebab992f734bbe7352c550686f48fca15ba6c5d.tar.gz
Update rabbitmq-components.mk
Diffstat (limited to 'rabbitmq-components.mk')
-rw-r--r--rabbitmq-components.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/rabbitmq-components.mk b/rabbitmq-components.mk
index 6767aad57d..71f65c0522 100644
--- a/rabbitmq-components.mk
+++ b/rabbitmq-components.mk
@@ -316,21 +316,21 @@ prepare-dist::
# Umbrella-specific settings.
# --------------------------------------------------------------------
-# If this project is under the Umbrella project, we override $(DEPS_DIR)
-# to point to the Umbrella's one. We also disable `make distclean` so
-# $(DEPS_DIR) is not accidentally removed.
+# If the top-level project is a RabbitMQ component, we override
+# $(DEPS_DIR) for this project to point to the top-level's one. We also
+# disable `make distclean` so $(DEPS_DIR) is not accidentally removed.
-ifneq ($(wildcard ../../UMBRELLA.md),)
-UNDER_UMBRELLA = 1
+ifneq ($(wildcard ../../rabbitmq-components.mk),)
+DISABLE_DISTCLEAN = 1
DEPS_DIR ?= $(abspath ..)
-else ifneq ($(wildcard ../../../../UMBRELLA.md),)
-UNDER_UMBRELLA = 1
+else ifneq ($(wildcard ../../../../rabbitmq-components.mk),)
+DISABLE_DISTCLEAN = 1
DEPS_DIR ?= $(abspath ../../..)
else ifneq ($(wildcard UMBRELLA.md),)
-UNDER_UMBRELLA = 1
+DISABLE_DISTCLEAN = 1
endif
-ifeq ($(UNDER_UMBRELLA),1)
+ifeq ($(DISABLE_DISTCLEAN),1)
ifneq ($(filter distclean distclean-deps,$(MAKECMDGOALS)),)
SKIP_DEPS = 1
endif