Skip to content

Commit e02132e

Browse files
committed
Fix rabbitmq-components.mk path when publishing to hex pm
1 parent 4112cc6 commit e02132e

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

deps/rabbit_common/mk/rabbitmq-hexpm.mk

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,30 @@ define RABBITMQ_HEXPM_DEFAULT_FILES
3030
"src"
3131
endef
3232

33-
ifeq ($(PROJECT),rabbit_common)
34-
RMQ_COMPONENTS_PREFIX = mk
35-
RMQ_COMPONENTS_HEXPM = mk/rabbitmq-components.hexpm.mk
36-
else
37-
RMQ_COMPONENTS_PREFIX = .
33+
RMQ_COMPONENTS_PLAIN = $(DEPS_DIR)/../rabbitmq-components.mk
3834
RMQ_COMPONENTS_HEXPM = $(DEPS_DIR)/rabbit_common/mk/rabbitmq-components.hexpm.mk
39-
endif
4035

4136
hex-publish: $(HEXPM_CLI) app rebar.config
4237
$(gen_verbose) echo "$(PROJECT_DESCRIPTION) $(PROJECT_VERSION)" \
4338
> git-revisions.txt
4439
$(verbose) mv \
45-
$(RMQ_COMPONENTS_PREFIX)/rabbitmq-components.mk \
40+
$(RMQ_COMPONENTS_PLAIN) \
4641
rabbitmq-components.mk.not-hexpm
4742
$(verbose) cp \
4843
$(RMQ_COMPONENTS_HEXPM) \
49-
$(RMQ_COMPONENTS_PREFIX)/rabbitmq-components.mk
44+
$(RMQ_COMPONENTS_PLAIN)
5045
$(verbose) grep -E '^dep.* = hex' \
5146
rabbitmq-components.mk.not-hexpm \
52-
>> $(RMQ_COMPONENTS_PREFIX)/rabbitmq-components.mk
47+
>> $(RMQ_COMPONENTS_PLAIN)
5348
$(verbose) touch -r \
5449
rabbitmq-components.mk.not-hexpm \
55-
$(RMQ_COMPONENTS_PREFIX)/rabbitmq-components.mk
50+
$(RMQ_COMPONENTS_PLAIN)
5651
$(verbose) trap '\
5752
rm -f git-revisions.txt rebar.lock; \
5853
if test -f rabbitmq-components.mk.not-hexpm; then \
5954
mv \
6055
rabbitmq-components.mk.not-hexpm \
61-
$(RMQ_COMPONENTS_PREFIX)/rabbitmq-components.mk; \
56+
$(RMQ_COMPONENTS_PLAIN); \
6257
fi' EXIT INT; \
6358
$(HEXPM_CLI) publish
6459

0 commit comments

Comments
 (0)