diff options
author | Loïc Hoguin <[email protected]> | 2018-12-05 09:38:56 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-12-05 11:38:02 +0100 |
commit | 672f9310b5a1fc9e6b7bb65f725f278666511db3 (patch) | |
tree | 3065f0542330189998b7a864339faf61e60877ec /core | |
parent | f221d99c4188a64352a77f28441985572313ed0f (diff) | |
download | erlang.mk-672f9310b5a1fc9e6b7bb65f725f278666511db3.tar.gz erlang.mk-672f9310b5a1fc9e6b7bb65f725f278666511db3.tar.bz2 erlang.mk-672f9310b5a1fc9e6b7bb65f725f278666511db3.zip |
Allow hooking before/after autopatch
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/deps.mk b/core/deps.mk index 611106d..4ec9d13 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -659,6 +659,12 @@ $(DEPS_DIR)/$(call dep_name,$1): cd $(DEPS_DIR)/$(DEP_NAME) && ./configure; \ fi ifeq ($(filter $(1),$(NO_AUTOPATCH)),) + $(verbose) $$(MAKE) --no-print-directory autopatch-$(DEP_NAME) +endif + +.PHONY: autopatch-$(call dep_name,$1) + +autopatch-$(call dep_name,$1):: $(verbose) if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_PATCH)" ]; then \ if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \ echo " PATCH Downloading rabbitmq-codegen"; \ @@ -677,9 +683,8 @@ ifeq ($(filter $(1),$(NO_AUTOPATCH)),) elif [ "$1" = "elixir" -a "$(ELIXIR_PATCH)" ]; then \ ln -s lib/elixir/ebin $(DEPS_DIR)/elixir/; \ else \ - $$(call dep_autopatch,$(DEP_NAME)) \ + $$(call dep_autopatch,$(call dep_name,$1)) \ fi -endif endef $(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep)))) |