forked from luceracloud/tachyon-aggregator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (24 loc) · 855 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
REBAR = $(shell pwd)/rebar3
PROJECT=tachyon
APP=tachyon
.PHONY: rel package version all tree
all: version_header compile
include fifo.mk
version:
@echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > $(PROJECT).version
version_header: version
@echo "-define(VERSION, <<\"$(shell cat $(PROJECT).version)\">>)." > apps/$(PROJECT)/include/$(PROJECT)_version.hrl
clean:
$(REBAR) clean
make -C rel/pkg clean
long-test:
[ -d apps/$(PROJECT)/.eunit ] && rm -r apps/$(PROJECT)/.eunit || true
$(REBAR) skip_deps=true -DEQC_LONG_TESTS eunit -v -r
qc:
$(REBAR) -C rebar_eqc.config compile skip_deps=true eunit --verbose
eqc-ci: clean all
$(REBAR) -D EQC_CI -C rebar_eqc_ci.config compile eunit skip_deps=true --verbose
package: rel
make -C rel/pkg package
rel:
$(REBAR) as prod release