-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
37 lines (27 loc) · 928 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
.PHONY: deps test
DIALYZER_FLAGS =
all: deps compile
compile: deps
./rebar compile
deps:
./rebar get-deps
clean:
./rebar clean
rm -rf test.*-temp-data
distclean: clean
./rebar delete-deps
test:
@# delete the lexer and parser beams because the rebar2 will not
@# recompile them on changes
@rm -f src/riak_ql_parser.erl src/riak_ql_lexer.erl \
ebin/riak_ql_parser.beam ebin/riak_ql_parser.* \
.eunit/riak_ql_parser.* .eunit/riak_ql_lexer.*
@# call the compile target as well, also needed for the lexer/parser files
./rebar compile eunit skip_deps=true
DIALYZER_APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
shell:
@# the shell command is broken in the riak_ql version of rebar and doesn't
@# do distribution anyway.
erl -pa ebin -pa deps/*/ebin -sname riak_ql -setcookie riak_ql
include tools.mk