-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile
44 lines (31 loc) · 949 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
38
39
40
41
42
43
44
.PHONY: rel deps test
all: deps compile
compile: deps
@./rebar compile
app:
@./rebar compile skip_deps=true
deps:
@./rebar get-deps
clean:
@./rebar clean
distclean: clean
@./rebar delete-deps
test: all test_erlang test_javascript
test_erlang: all
@./rebar skip_deps=true eunit
define MISSING_PHANTOM_MESSAGE
PhantomJS is missing to run the javascript tests, to install on your OS do the following
- MacOS via homebrew run `brew install phantomjs`
- Ubuntu `apt-get install phantomjs`
- Other linux distros should check http://phantomjs.org/download.html to download a binary build
or visit http://phantomjs.org/ for more information.
endef
export MISSING_PHANTOM_MESSAGE
test_javascript: all
ifeq ($(strip $(shell command -v phantomjs > /dev/null 2>&1 || echo 1)),)
@echo "==> riak_control (qunit)"
@phantomjs test/javascripts/runner.js test/javascripts/index.html
else
@echo "$$MISSING_PHANTOM_MESSAGE"
endif
include tools.mk