@@ -3,10 +3,9 @@ ELIXIRC := bin/elixirc --ignore-module-conflict $(ELIXIRC_OPTS)
3
3
ERLC := erlc -I lib/elixir/include
4
4
ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin
5
5
VERSION := 0.8.0.dev
6
- RELEASE_FLAG := .release
7
6
INSTALL_PATH := /usr/local
8
7
9
- .PHONY : 1
8
+ .PHONY : install compile erlang elixir dialyze test clean docs release_docs release_zip release_erl
10
9
.NOTPARALLEL : compile
11
10
12
11
# ==> Templates
@@ -82,7 +81,6 @@ install: compile
82
81
83
82
clean :
84
83
@ cd lib/elixir && $(REBAR ) clean
85
- rm -rf $(RELEASE_FLAG )
86
84
rm -rf ebin
87
85
rm -rf lib/* /ebin
88
86
rm -rf lib/* /test/tmp
@@ -95,17 +93,14 @@ clean:
95
93
96
94
# ==> Release tasks
97
95
98
- $(RELEASE_FLAG ) : compile
99
- touch $(RELEASE_FLAG )
100
-
101
- docs : $(RELEASE_FLAG )
96
+ docs :
102
97
mkdir -p ebin
103
98
rm -rf docs
104
99
cp -R -f lib/* /ebin/* .beam ./ebin
105
100
bin/elixir ../exdoc/bin/exdoc
106
101
rm -rf ebin
107
102
108
- release_zip : $( RELEASE_FLAG )
103
+ release_zip :
109
104
rm -rf v$(VERSION ) .zip
110
105
zip -9 -r v$(VERSION ) .zip bin CHANGELOG.md LEGAL lib/* /ebin LICENSE README.md rel
111
106
@@ -114,7 +109,7 @@ release_docs: docs
114
109
rm -rf ../elixir-lang.github.com/docs/master
115
110
mv output ../elixir-lang.github.com/docs/master
116
111
117
- release_erl : $( RELEASE_FLAG )
112
+ release_erl :
118
113
@ rm -rf rel/elixir
119
114
@ cd rel && ../rebar generate
120
115
@@ -139,7 +134,7 @@ test_kernel: compile
139
134
@ echo " ==> Adding Erlang/OTP basic applications to a new base PLT"
140
135
@ dialyzer --output_plt .dialyzer.base_plt --build_plt --apps erts kernel stdlib compiler syntax_tools inets crypto ssl
141
136
142
- dialyze : $( RELEASE_FLAG ) .dialyzer.base_plt
137
+ dialyze : .dialyzer.base_plt
143
138
@ rm -f .dialyzer_plt
144
139
@ cp .dialyzer.base_plt .dialyzer_plt
145
140
@ echo " ==> Adding Elixir to PLT..."
0 commit comments