diff options
author | Loïc Hoguin <[email protected]> | 2016-10-29 01:34:19 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-10-29 01:34:19 +0300 |
commit | 5c18311f91530378626d63e0e4cb9e65c1d7f44b (patch) | |
tree | 6e8da5ed77fd54e953281c9238872a6744ec6183 /plugins/relx.mk | |
parent | 885b62a14300c6b78c376bf48a6ba0ebad7dae6c (diff) | |
download | erlang.mk-5c18311f91530378626d63e0e4cb9e65c1d7f44b.tar.gz erlang.mk-5c18311f91530378626d63e0e4cb9e65c1d7f44b.tar.bz2 erlang.mk-5c18311f91530378626d63e0e4cb9e65c1d7f44b.zip |
Make the sfx plugin use the tarball from Relx
Plus small tweaks.
Diffstat (limited to 'plugins/relx.mk')
-rw-r--r-- | plugins/relx.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/relx.mk b/plugins/relx.mk index 9a15f4a..6c7641c 100644 --- a/plugins/relx.mk +++ b/plugins/relx.mk @@ -53,15 +53,17 @@ else define get_relx_release.erl {ok, Config} = file:consult("$(RELX_CONFIG)"), - {release, {Name, _}, _} = lists:keyfind(release, 1, Config), - io:format("~s", [Name]), + {release, {Name, Vsn}, _} = lists:keyfind(release, 1, Config), + io:format("~s ~s", [Name, Vsn]), halt(0). endef -RELX_RELEASE = `$(call erlang,$(get_relx_release.erl))` +RELX_REL := $(shell $(call erlang,$(get_relx_release.erl))) +RELX_REL_NAME := $(word 1,$(RELX_REL)) +RELX_REL_VSN := $(word 2,$(RELX_REL)) run: all - $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_RELEASE)/bin/$(RELX_RELEASE) console + $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME) console help:: $(verbose) printf "%s\n" "" \ |