aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/relx.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-11-27 14:33:43 +0100
committerLoïc Hoguin <[email protected]>2024-11-27 14:33:43 +0100
commita8d5744cc412016b0d57e0d398e2195c380ae4b6 (patch)
tree94e004d6fb3388cb60f3c1ca9f59a56c2ba12892 /plugins/relx.mk
parent5850da15c3c0d12889f5450b5e11d1e9a13f52c9 (diff)
downloaderlang.mk-work-20241127.tar.gz
erlang.mk-work-20241127.tar.bz2
erlang.mk-work-20241127.zip
Set RELX_TAR=0 when using "make run"work-20241127
We don't need the tarball in that scenario.
Diffstat (limited to 'plugins/relx.mk')
-rw-r--r--plugins/relx.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/relx.mk b/plugins/relx.mk
index cb8f06d..2ee237f 100644
--- a/plugins/relx.mk
+++ b/plugins/relx.mk
@@ -99,17 +99,13 @@ endef
relx-rel: rel-deps app
$(call erlang,$(call relx_release.erl),-pa ebin/)
$(verbose) $(MAKE) relx-post-rel
-ifeq ($(RELX_TAR),1)
- $(call erlang,$(call relx_tar.erl),-pa ebin/)
-endif
+ $(if $(filter-out 0,$(RELX_TAR)),$(call erlang,$(call relx_tar.erl),-pa ebin/))
relx-relup: rel-deps app
$(call erlang,$(call relx_release.erl),-pa ebin/)
$(MAKE) relx-post-rel
$(call erlang,$(call relx_relup.erl),-pa ebin/)
-ifeq ($(RELX_TAR),1)
- $(call erlang,$(call relx_tar.erl),-pa ebin/)
-endif
+ $(if $(filter-out 0,$(RELX_TAR)),$(call erlang,$(call relx_tar.erl),-pa ebin/))
distclean-relx-rel:
$(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
@@ -152,6 +148,7 @@ ifeq ($(PLATFORM),msys2)
RELX_REL_EXT := .cmd
endif
+run:: RELX_TAR := 0
run:: all
$(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD)