aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/relx.mk
diff options
context:
space:
mode:
authorOleg Nemanov <[email protected]>2018-05-23 11:59:44 +0300
committerLoïc Hoguin <[email protected]>2018-11-22 15:56:54 +0100
commite0829f241929078c71736412e307b9ad09b16760 (patch)
tree834c3590705d3ae7a6bafb570f250d80daae1531 /plugins/relx.mk
parentdbc51f9caa610305fec5db0beebc629d2e46f46d (diff)
downloaderlang.mk-e0829f241929078c71736412e307b9ad09b16760.tar.gz
erlang.mk-e0829f241929078c71736412e307b9ad09b16760.tar.bz2
erlang.mk-e0829f241929078c71736412e307b9ad09b16760.zip
Add relx-post-rel hook
This hook can be used, for example, to copy additional files to release before it is tared by relx.
Diffstat (limited to 'plugins/relx.mk')
-rw-r--r--plugins/relx.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/relx.mk b/plugins/relx.mk
index dd3860a..94f2e79 100644
--- a/plugins/relx.mk
+++ b/plugins/relx.mk
@@ -44,14 +44,23 @@ $(RELX):
$(verbose) chmod +x $(RELX)
relx-rel: $(RELX) rel-deps app
- $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) release $(if $(filter 1,$(RELX_TAR)),tar)
+ $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) release
+ $(MAKE) relx-post-rel
+ifeq ($(RELX_TAR),1)
+ $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) tar
+endif
relx-relup: $(RELX) rel-deps app
- $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) release relup $(if $(filter 1,$(RELX_TAR)),tar)
+ $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) release
+ $(MAKE) relx-post-rel
+ $(verbose) $(RELX) -c $(RELX_CONFIG) $(RELX_OPTS) relup $(if $(filter 1,$(RELX_TAR)),tar)
distclean-relx-rel:
$(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
+# Default hooks.
+relx-post-rel::
+
# Run target.
ifeq ($(wildcard $(RELX_CONFIG)),)