Merge pull request #14 from lwes/pluggable-emission
[lwes-erlang/github-mirror.git] / Makefile
blob7e14784f8c92a223064a6974b72b668d8d67b8d5
1 NAME=lwes
3 REBAR3=rebar3
4 all:
5 $(REBAR3) compile
7 dialyzer:
8 $(REBAR3) dialyzer
10 test: dialyzer
11 $(REBAR3) as test do eunit,cover
13 # Compile and run unit test for individual modules: 'make test-oxgw_util'
14 # or 'make test-oxgw_util test-oxgw_request'
15 test-%: src/%.erl
16 $(REBAR3) as test do eunit -m $*
18 name:
19 @echo $(NAME)
21 version:
22 @echo $(shell awk 'match($$0, /[0-9]+\.[0-9]+(\.[0-9]+)+/){print substr($$0, RSTART,RLENGTH); exit}' ChangeLog)
24 clean:
25 if test -d _build; then $(REBAR3) clean; fi
27 maintainer-clean: clean
28 rm -rf _build
30 .PHONY: all test name version clean maintainer-clean