Skip to content

Commit 85fca3d

Browse files
author
José Valim
committed
Properly declare .PHONY targets
1 parent 3d414a8 commit 85fca3d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Makefile

+5-10
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ ELIXIRC := bin/elixirc --ignore-module-conflict $(ELIXIRC_OPTS)
33
ERLC := erlc -I lib/elixir/include
44
ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin
55
VERSION := 0.8.0.dev
6-
RELEASE_FLAG := .release
76
INSTALL_PATH := /usr/local
87

9-
.PHONY: 1
8+
.PHONY: install compile erlang elixir dialyze test clean docs release_docs release_zip release_erl
109
.NOTPARALLEL: compile
1110

1211
#==> Templates
@@ -82,7 +81,6 @@ install: compile
8281

8382
clean:
8483
@ cd lib/elixir && $(REBAR) clean
85-
rm -rf $(RELEASE_FLAG)
8684
rm -rf ebin
8785
rm -rf lib/*/ebin
8886
rm -rf lib/*/test/tmp
@@ -95,17 +93,14 @@ clean:
9593

9694
#==> Release tasks
9795

98-
$(RELEASE_FLAG): compile
99-
touch $(RELEASE_FLAG)
100-
101-
docs: $(RELEASE_FLAG)
96+
docs:
10297
mkdir -p ebin
10398
rm -rf docs
10499
cp -R -f lib/*/ebin/*.beam ./ebin
105100
bin/elixir ../exdoc/bin/exdoc
106101
rm -rf ebin
107102

108-
release_zip: $(RELEASE_FLAG)
103+
release_zip:
109104
rm -rf v$(VERSION).zip
110105
zip -9 -r v$(VERSION).zip bin CHANGELOG.md LEGAL lib/*/ebin LICENSE README.md rel
111106

@@ -114,7 +109,7 @@ release_docs: docs
114109
rm -rf ../elixir-lang.github.com/docs/master
115110
mv output ../elixir-lang.github.com/docs/master
116111

117-
release_erl: $(RELEASE_FLAG)
112+
release_erl:
118113
@ rm -rf rel/elixir
119114
@ cd rel && ../rebar generate
120115

@@ -139,7 +134,7 @@ test_kernel: compile
139134
@ echo "==> Adding Erlang/OTP basic applications to a new base PLT"
140135
@ dialyzer --output_plt .dialyzer.base_plt --build_plt --apps erts kernel stdlib compiler syntax_tools inets crypto ssl
141136

142-
dialyze: $(RELEASE_FLAG) .dialyzer.base_plt
137+
dialyze: .dialyzer.base_plt
143138
@ rm -f .dialyzer_plt
144139
@ cp .dialyzer.base_plt .dialyzer_plt
145140
@ echo "==> Adding Elixir to PLT..."

0 commit comments

Comments
 (0)