-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
Makefile
38 lines (25 loc) · 1014 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
project_dirs = lexical_shared lexical_plugin lexical_test
dialyzer_dirs = lexical_shared lexical_plugin
compile.all: compile.projects compile.umbrella
dialyzer.all: compile.all dialyzer.projects dialyzer.umbrella
test.all: test.projects test.umbrella
dialyzer.plt.all: dialyzer.plt.projects dialyzer.plt.umbrella
dialyzer.umbrella:
mix dialyzer
dialyzer.projects:
$(foreach dir, $(dialyzer_dirs), cd projects/$(dir) && mix dialyzer && cd ../..;)
dialyzer.plt.projects:
$(foreach dir, $(dialyzer_dirs), cd projects/$(dir) && mix dialyzer --plt && cd ../..;)
dialyzer.plt.umbrella:
mix dialyzer --plt
test.umbrella:
mix test
test.projects:
cd projects
$(foreach dir, $(project_dirs), cd projects/$(dir) && mix test && cd ../..;)
compile.umbrella: compile.projects
mix deps.get
mix compile --skip-umbrella-children --warnings-as-errors
compile.projects:
cd projects
$(foreach dir, $(project_dirs), cd projects/$(dir) && mix deps.get && mix do clean, compile --warnings-as-errors && cd ../..;)