-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
42 lines (29 loc) · 912 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
.PHONY: test
all: compile
compile: rebar3
$(REBAR) compile
run: rebar3
$(REBAR) shell --config sample.config
test: rebar3 setup-all-tests
$(REBAR) eunit
dev: _checkouts _checkouts/epgsql _checkouts/mysql
_checkouts:
mkdir -p _checkouts
_checkouts/epgsql:
git clone https://github.com/epgsql/epgsql _checkouts/epgsql
_checkouts/mysql:
git clone https://github.com/mysql-otp/mysql-otp _checkouts/mysql
publish: rebar3
$(REBAR) hex publish
dialyzer: rebar3
$(REBAR) dialyzer
setup-all-tests:
@(echo "Configuring databases for MySQL and PostgreSQL tests")
@(./test/db_config.sh)
# Check if rebar3.mk exists, and if not, download it
ifeq ("$(wildcard rebar3.mk)","")
$(shell curl -O https://raw.githubusercontent.com/choptastic/rebar3.mk/master/rebar3.mk)
endif
# rebar3.mk adds a new rebar3 rule to your Makefile
# (see https://github.com/choptastic/rebar3.mk) for full info
include rebar3.mk