Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae664f7

Browse files
committed
Update rabbitmq-components.mk
1 parent 3f3c312 commit ae664f7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rabbitmq-components.mk

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,21 +316,21 @@ prepare-dist::
316316
# Umbrella-specific settings.
317317
# --------------------------------------------------------------------
318318

319-
# If this project is under the Umbrella project, we override $(DEPS_DIR)
320-
# to point to the Umbrella's one. We also disable `make distclean` so
321-
# $(DEPS_DIR) is not accidentally removed.
319+
# If the top-level project is a RabbitMQ component, we override
320+
# $(DEPS_DIR) for this project to point to the top-level's one. We also
321+
# disable `make distclean` so $(DEPS_DIR) is not accidentally removed.
322322

323-
ifneq ($(wildcard ../../UMBRELLA.md),)
324-
UNDER_UMBRELLA = 1
323+
ifneq ($(wildcard ../../rabbitmq-components.mk),)
324+
DISABLE_DISTCLEAN = 1
325325
DEPS_DIR ?= $(abspath ..)
326-
else ifneq ($(wildcard ../../../../UMBRELLA.md),)
327-
UNDER_UMBRELLA = 1
326+
else ifneq ($(wildcard ../../../../rabbitmq-components.mk),)
327+
DISABLE_DISTCLEAN = 1
328328
DEPS_DIR ?= $(abspath ../../..)
329329
else ifneq ($(wildcard UMBRELLA.md),)
330-
UNDER_UMBRELLA = 1
330+
DISABLE_DISTCLEAN = 1
331331
endif
332332

333-
ifeq ($(UNDER_UMBRELLA),1)
333+
ifeq ($(DISABLE_DISTCLEAN),1)
334334
ifneq ($(filter distclean distclean-deps,$(MAKECMDGOALS)),)
335335
SKIP_DEPS = 1
336336
endif

0 commit comments

Comments
 (0)