-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (46 loc) · 1.21 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: deps
#
# Use Bash as shell for evaluating expressions by make
#
SHELL=/bin/bash
BASE_DIR = $(shell pwd)
#
# Setup Git repository URL. By default Git URL from this repository
# is used. In case ONEDATA_GIT_URL environment variable is defined,
# use it instead of the default.
#
GIT_URL := $(shell git config --get remote.origin.url | sed -e 's/\(\/[^/]*\)$$//g')
GIT_URL := $(shell if [ "${GIT_URL}" = "file:/" ]; then echo 'ssh://[email protected]:7999/vfs'; else echo ${GIT_URL}; fi)
ONEDATA_GIT_URL := $(shell if [ "${ONEDATA_GIT_URL}" = "" ]; then echo ${GIT_URL}; else echo ${ONEDATA_GIT_URL}; fi)
export ONEDATA_GIT_URL
all: rel
upgrade:
./rebar3 upgrade --all
compile:
./rebar3 compile
rel: compile
./rebar3 release
start:
_build/default/rel/appmock/bin/appmock console
clean:
#
# Restore the rebar.lock if backup exists after failed build
#
@ if [ -f ./rebar.lock.bak ]; then \
mv ./rebar.lock.bak rebar.lock; \
fi
./rebar3 clean
distclean: clean
./rebar3 clean --all
##
## Submodules
##
submodules:
git submodule sync --recursive ${submodule}
git submodule update --init --recursive ${submodule}
##
## Dialyzer targets local
##
# Dialyzes the project.
dialyzer:
./rebar3 dialyzer