Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (41 sloc) 1.206 kb
fa41f79 @jamesaimonetti WHISTLE-170: some last changes for dialyzer and to make files
jamesaimonetti authored
1 ROOT = .
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
2 DIALYZER = dialyzer
fa41f79 @jamesaimonetti WHISTLE-170: some last changes for dialyzer and to make files
jamesaimonetti authored
3 REBAR = $(ROOT)/bin/rebar
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
4
ef1f0cd @jamesaimonetti WHISTLE-42: enforce a little ordering
jamesaimonetti authored
5 MAKEDIRS = lib/rabbitmq_server-2.8.6/Makefile \
6 lib/rabbitmq_client-2.8.6/Makefile \
7 lib/lager-1.0.0/Makefile \
7d9cadd @jamesaimonetti WHISTLE-42: stop building the sup util
jamesaimonetti authored
8 lib/*/Makefile \
9 ecallmgr/Makefile \
10 whistle_apps/Makefile
ccb7fb9 @jamesaimonetti WHISTLE-626: dialyzer updates and makefile update
jamesaimonetti authored
11
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
12 DIRS = $(ROOT)/lib/whistle-1.0.0 \
13 $(ROOT)/lib/whistle_couch-1.0.0 \
14 $(ROOT)/lib/whistle_amqp-1.0.0 \
15 $(ROOT)/lib/whistle_number_manager-1.0.0 \
16 $(ROOT)/ecallmgr \
17 $(ROOT)/whistle_apps
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
18
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
19 .PHONY: $(MAKEDIRS)
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
20
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
21 all : compile
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
22
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
23 compile: ACTION = all
24 compile: $(MAKEDIRS)
25
26 $(MAKEDIRS):
27 $(MAKE) -C $(@D) $(ACTION)
28
29 deps : ACTION = get-deps
30 deps : $(MAKEDIRS)
31
32 clean : ACTION = clean
33 clean : $(MAKEDIRS)
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
34 rm -f test/*.beam
35 rm -f erl_crash.dump
36
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
37 test : clean app eunit
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
38
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
39 eunit :
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
40 @$(REBAR) eunit skip_deps=true
41
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
42 build-plt :
fa2928a @jamesaimonetti WHISTLE-982: update makefile, resolve some dialyzer issues, and only loa...
jamesaimonetti authored
43 @$(DIALYZER) --build_plt --output_plt $(ROOT)/.platform_dialyzer.plt \
dadb63e @jamesaimonetti v1.51: add erts to dialyzer's base plt
jamesaimonetti authored
44 --apps erts kernel stdlib sasl inets crypto public_key ssl
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
45
6491be1 @jamesaimonetti WHISTLE-42: holy hell of an update for the build process
jamesaimonetti authored
46 dialyze :
fa41f79 @jamesaimonetti WHISTLE-170: some last changes for dialyzer and to make files
jamesaimonetti authored
47 @$(DIALYZER) $(foreach DIR,$(DIRS),$(DIR)/ebin) \
fa2928a @jamesaimonetti WHISTLE-982: update makefile, resolve some dialyzer issues, and only loa...
jamesaimonetti authored
48 --plt $(ROOT)/.platform_dialyzer.plt --no_native \
530fede @jamesaimonetti WHISTLE-626: adding a makefile (borrowed from Cowboy and being adapted) ...
jamesaimonetti authored
49 -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
50
51 docs:
52 @$(REBAR) doc skip_deps=true
7107ed8 @jamesaimonetti v1.51: add an update option to the makefile to run git_update
jamesaimonetti authored
53
54 update:
55 ./bin/git_update.sh
Something went wrong with that request. Please try again.