-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 814 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 814 Bytes
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
PROJECT = restc
# Dependencies ##########################################################
DEPS = hackney jsx erlsom
dep_hackney = hex 1.20.1
dep_jsx = hex 3.1.0
dep_erlsom = hex 1.5.1
# Standard targets #####################################################
include erlang.mk
app:: rebar.config
ELVIS_IN_PATH := $(shell elvis --version 2> /dev/null)
ELVIS_LOCAL := $(shell .elvis/_build/default/bin/elvis --version 2> /dev/null)
elvis_rock:
ifdef ELVIS_IN_PATH
elvis rock
else ifdef ELVIS_LOCAL
.elvis/_build/default/bin/elvis rock
else
$(MAKE) compile_elvis
.elvis/_build/default/bin/elvis rock
endif
compile_elvis:
git clone https://github.com/inaka/elvis.git --branch 4.1.1 --single-branch .elvis && \
cd .elvis && \
rebar3 compile && \
rebar3 escriptize && \
cd ..
# eof