Convert EXTRA_PACKAGE_DIRS use to construct_app_commands
This commit is contained in:
parent
bfec1fc23b
commit
f09001492e
|
|
@ -4,4 +4,3 @@
|
||||||
^dist/
|
^dist/
|
||||||
^cover/
|
^cover/
|
||||||
^erl_crash.dump$
|
^erl_crash.dump$
|
||||||
^priv/www-cli/rabbitmqadmin
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
RELEASABLE:=true
|
RELEASABLE:=true
|
||||||
DEPS:=rabbitmq-mochiweb webmachine-wrapper rabbitmq-server rabbitmq-erlang-client rabbitmq-management-agent
|
DEPS:=rabbitmq-mochiweb webmachine-wrapper rabbitmq-server rabbitmq-erlang-client rabbitmq-management-agent
|
||||||
WITH_BROKER_TEST_COMMANDS:=rabbit_mgmt_test_all:all_tests()
|
WITH_BROKER_TEST_COMMANDS:=rabbit_mgmt_test_all:all_tests()
|
||||||
EXTRA_PACKAGE_DIRS:=$(PACKAGE_DIR)/priv
|
|
||||||
EXTRA_TARGETS:=$(shell find $(EXTRA_PACKAGE_DIRS) -type f) $(PACKAGE_DIR)/priv/www-cli/rabbitmqadmin
|
|
||||||
|
|
||||||
define package_rules
|
CONSTRUCT_APP_PREREQS:=$(shell find $(PACKAGE_DIR)/priv -type f) $(PACKAGE_DIR)/bin/rabbitmqadmin
|
||||||
|
define construct_app_commands
|
||||||
$(PACKAGE_DIR)/priv/www-cli/rabbitmqadmin: $(PACKAGE_DIR)/bin/rabbitmqadmin
|
cp -r $(PACKAGE_DIR)/priv $(APP_DIR)
|
||||||
cp $$< $$@
|
cp $(PACKAGE_DIR)/bin/rabbitmqadmin $(APP_DIR)/priv/www-cli
|
||||||
|
endef
|
||||||
|
|
||||||
# The tests require erlang/OTP R14 (httpc issue)
|
# The tests require erlang/OTP R14 (httpc issue)
|
||||||
$(PACKAGE_DIR)+pre-test::
|
$(PACKAGE_DIR)+pre-test::
|
||||||
|
|
@ -15,8 +14,3 @@ $(PACKAGE_DIR)+pre-test::
|
||||||
echo "Need Erlang/OTP R14A or higher" ; \
|
echo "Need Erlang/OTP R14A or higher" ; \
|
||||||
exit 1 ; \
|
exit 1 ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(PACKAGE_DIR)+clean::
|
|
||||||
rm -f $(PACKAGE_DIR)/priv/www-cli/rabbitmqadmin
|
|
||||||
|
|
||||||
endef
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue