Makefile: No need to patch SockJS anymore
We had to do that temporarily to pass `-Duse_old_builtin_types` to SockJS' Makefile. [#130659985]
This commit is contained in:
parent
af0c9f6db0
commit
c379c72bb7
|
|
@ -12,24 +12,5 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
|
|||
ERLANG_MK_REPO = https://github.com/rabbitmq/erlang.mk.git
|
||||
ERLANG_MK_COMMIT = rabbitmq-tmp
|
||||
|
||||
# We need to patch SockJS' Makefile to be able to pass ERLC_OPTS to it.
|
||||
.DEFAULT_GOAL = all
|
||||
deps:: patch-sockjs
|
||||
|
||||
include rabbitmq-components.mk
|
||||
include erlang.mk
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Compilation.
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
SOCKJS_ERLC_OPTS += $(RMQ_ERLC_OPTS)
|
||||
export SOCKJS_ERLC_OPTS
|
||||
|
||||
.PHONY: patch-sockjs
|
||||
patch-sockjs: $(DEPS_DIR)/sockjs
|
||||
$(exec_verbose) if ! grep -qw SOCKJS_ERLC_OPTS $(DEPS_DIR)/sockjs/Makefile; then \
|
||||
echo >> $(DEPS_DIR)/sockjs/Makefile; \
|
||||
echo >> $(DEPS_DIR)/sockjs/Makefile; \
|
||||
echo 'ERLC_OPTS += $$(SOCKJS_ERLC_OPTS)' >> $(DEPS_DIR)/sockjs/Makefile; \
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue