summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2a06a993bd2a842d75302144f0125a17d90e49d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REBAR ?= $(shell which rebar 2>/dev/null || which ./rebar)

REBAR_FLAGS ?=

all: compile

compile:
	$(REBAR) compile $(REBAR_FLAGS)

check: test
test: compile
	$(REBAR) eunit $(REBAR_FLAGS)

clean:
	$(REBAR) clean $(REBAR_FLAGS)

dialyzer:
	$(REBAR) dialyze $(REBAR_FLAGS)

deb:
	cd packaging/deb && $(MAKE) TOPDIR=$(PWD) deb

rpm:
	cd packaging/centos && $(MAKE) TOPDIR=$(PWD) rpm