Update rabbitmq-components.mk
This commit is contained in:
parent
2c23acf988
commit
ee9b2996f4
|
|
@ -316,21 +316,21 @@ prepare-dist::
|
||||||
# Umbrella-specific settings.
|
# Umbrella-specific settings.
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
||||||
# If this project is under the Umbrella project, we override $(DEPS_DIR)
|
# If the top-level project is a RabbitMQ component, we override
|
||||||
# to point to the Umbrella's one. We also disable `make distclean` so
|
# $(DEPS_DIR) for this project to point to the top-level's one. We also
|
||||||
# $(DEPS_DIR) is not accidentally removed.
|
# disable `make distclean` so $(DEPS_DIR) is not accidentally removed.
|
||||||
|
|
||||||
ifneq ($(wildcard ../../UMBRELLA.md),)
|
ifneq ($(wildcard ../../rabbitmq-components.mk),)
|
||||||
UNDER_UMBRELLA = 1
|
DISABLE_DISTCLEAN = 1
|
||||||
DEPS_DIR ?= $(abspath ..)
|
DEPS_DIR ?= $(abspath ..)
|
||||||
else ifneq ($(wildcard ../../../../UMBRELLA.md),)
|
else ifneq ($(wildcard ../../../../rabbitmq-components.mk),)
|
||||||
UNDER_UMBRELLA = 1
|
DISABLE_DISTCLEAN = 1
|
||||||
DEPS_DIR ?= $(abspath ../../..)
|
DEPS_DIR ?= $(abspath ../../..)
|
||||||
else ifneq ($(wildcard UMBRELLA.md),)
|
else ifneq ($(wildcard UMBRELLA.md),)
|
||||||
UNDER_UMBRELLA = 1
|
DISABLE_DISTCLEAN = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(UNDER_UMBRELLA),1)
|
ifeq ($(DISABLE_DISTCLEAN),1)
|
||||||
ifneq ($(filter distclean distclean-deps,$(MAKECMDGOALS)),)
|
ifneq ($(filter distclean distclean-deps,$(MAKECMDGOALS)),)
|
||||||
SKIP_DEPS = 1
|
SKIP_DEPS = 1
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue