summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2015-09-25 12:01:10 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2015-09-25 12:01:10 +0200
commite29192374c038072cac27b6fc5f801d62171b11d (patch)
treef7e258104fd20d4c00b733d451a4e82657682b6c /Makefile
parent66fc18a67dfe1939ab98b4a4058244330070a0bb (diff)
downloadelixir-e29192374c038072cac27b6fc5f801d62171b11d.tar.gz
Require Erlang 18.0 forward
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 418401691..e5e119551 100644
--- a/Makefile
+++ b/Makefile
@@ -17,13 +17,11 @@ INSTALL_PROGRAM = $(INSTALL) -m755
#==> Functions
-# This check should work for older versions like R16B
-# as well as new verions like 17.1 and 18
define CHECK_ERLANG_RELEASE
- $(Q) erl -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release)])' -s erlang halt | grep -q '^1[789]'; \
- if [ $$? != 0 ]; then \
- echo "At least Erlang 17.0 is required to build Elixir"; \
- exit 1; \
+ $(Q) erl -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release) >= "18"])' -s erlang halt | grep -q '^true'; \
+ if [ $$? != 0 ]; then \
+ echo "At least Erlang 18.0 is required to build Elixir"; \
+ exit 1; \
fi;
endef