@@ -30,35 +30,30 @@ define RABBITMQ_HEXPM_DEFAULT_FILES
30
30
"src"
31
31
endef
32
32
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
38
34
RMQ_COMPONENTS_HEXPM = $(DEPS_DIR ) /rabbit_common/mk/rabbitmq-components.hexpm.mk
39
- endif
40
35
41
36
hex-publish : $(HEXPM_CLI ) app rebar.config
42
37
$(gen_verbose ) echo " $( PROJECT_DESCRIPTION) $( PROJECT_VERSION) " \
43
38
> git-revisions.txt
44
39
$(verbose ) mv \
45
- $(RMQ_COMPONENTS_PREFIX ) /rabbitmq-components.mk \
40
+ $(RMQ_COMPONENTS_PLAIN ) \
46
41
rabbitmq-components.mk.not-hexpm
47
42
$(verbose ) cp \
48
43
$(RMQ_COMPONENTS_HEXPM ) \
49
- $(RMQ_COMPONENTS_PREFIX ) /rabbitmq-components.mk
44
+ $(RMQ_COMPONENTS_PLAIN )
50
45
$(verbose ) grep -E ' ^dep.* = hex' \
51
46
rabbitmq-components.mk.not-hexpm \
52
- >> $(RMQ_COMPONENTS_PREFIX ) /rabbitmq-components.mk
47
+ >> $(RMQ_COMPONENTS_PLAIN )
53
48
$(verbose ) touch -r \
54
49
rabbitmq-components.mk.not-hexpm \
55
- $(RMQ_COMPONENTS_PREFIX ) /rabbitmq-components.mk
50
+ $(RMQ_COMPONENTS_PLAIN )
56
51
$(verbose ) trap ' \
57
52
rm -f git-revisions.txt rebar.lock; \
58
53
if test -f rabbitmq-components.mk.not-hexpm; then \
59
54
mv \
60
55
rabbitmq-components.mk.not-hexpm \
61
- $(RMQ_COMPONENTS_PREFIX ) /rabbitmq-components.mk ; \
56
+ $(RMQ_COMPONENTS_PLAIN ) ; \
62
57
fi' EXIT INT; \
63
58
$(HEXPM_CLI ) publish
64
59
0 commit comments