Skip to content

Commit 7880536

Browse files
author
José Valim
committed
Remove entry points for rebar 2
1 parent 825fb73 commit 7880536

File tree

5 files changed

+6
-35
lines changed

5 files changed

+6
-35
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/lib/*/_build/
44
/lib/*/tmp/
55
/lib/elixir/src/*_parser.erl
6-
/lib/elixir/src/elixir.app.src
76
/lib/elixir/test/ebin/
87
/man/elixir.1
98
/man/iex.1

Makefile

+4-11
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ GIT_TAG = $(strip $(shell head="$(call GIT_REVISION)"; git tag --points-at $$hea
2222
#==> Functions
2323

2424
define CHECK_ERLANG_RELEASE
25-
$(Q) erl -noshell -eval '{V,_} = string:to_integer(erlang:system_info(otp_release)), io:fwrite("~s", [is_integer(V) and (V >= 19)])' -s erlang halt | grep -q '^true'; \
25+
erl -noshell -eval '{V,_} = string:to_integer(erlang:system_info(otp_release)), io:fwrite("~s", [is_integer(V) and (V >= 19)])' -s erlang halt | grep -q '^true'; \
2626
if [ $$? != 0 ]; then \
2727
echo "At least Erlang 19.0 is required to build Elixir"; \
2828
exit 1; \
29-
fi;
29+
fi
3030
endef
3131

3232
define APP_TEMPLATE
@@ -56,14 +56,7 @@ UNICODE:=lib/elixir/ebin/Elixir.String.Unicode.beam
5656

5757
default: compile
5858

59-
compile: lib/elixir/src/elixir.app.src erlang elixir
60-
61-
lib/elixir/src/elixir.app.src: src/elixir.app.src
62-
$(Q) $(call CHECK_ERLANG_RELEASE)
63-
$(Q) rm -f lib/elixir/src/elixir.app.src
64-
$(Q) echo "%% This file is automatically generated from <project_root>/src/elixir.app.src" \
65-
>lib/elixir/src/elixir.app.src
66-
$(Q) cat src/elixir.app.src >>lib/elixir/src/elixir.app.src
59+
compile: erlang elixir
6760

6861
erlang:
6962
$(Q) cd lib/elixir && $(REBAR) compile
@@ -76,6 +69,7 @@ elixir: stdlib lib/eex/ebin/Elixir.EEx.beam mix ex_unit logger eex iex
7669
stdlib: $(KERNEL) VERSION
7770
$(KERNEL): lib/elixir/lib/*.ex lib/elixir/lib/*/*.ex lib/elixir/lib/*/*/*.ex
7871
$(Q) if [ ! -f $(KERNEL) ]; then \
72+
$(call CHECK_ERLANG_RELEASE); \
7973
echo "==> bootstrap (compile)"; \
8074
$(ERL) -s elixir_compiler bootstrap -s erlang halt; \
8175
fi
@@ -118,7 +112,6 @@ clean:
118112
cd lib/elixir && $(REBAR) clean
119113
rm -rf ebin
120114
rm -rf lib/*/ebin
121-
rm -f lib/elixir/src/elixir.app.src
122115
$(Q) $(MAKE) clean_residual_files
123116

124117
clean_elixir:

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ This document simply outlines the release process:
3232

3333
* VERSION
3434
* CHANGELOG.md
35-
* src/elixir.app.src (not lib/elixir/src/elixir.app.src)
35+
* lib/elixir/src/elixir.app.src

src/elixir.app.src renamed to lib/elixir/src/elixir.app.src

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, elixir,
22
[{description, "elixir"},
3-
{vsn, "1.6.0-dev"},
3+
{vsn, "1.5.2"},
44
{modules, [
55
elixir
66
]},

rebar.config

-21
This file was deleted.

0 commit comments

Comments
 (0)