forked from dalmatinerdb/dalmatinerdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 791 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
36
37
38
39
40
41
APP=dalmatiner_db
.PHONY: all
REBAR=$(shell pwd)/rebar3
ELVIS=$(shell pwd)/elvis
APP=dalmatiner_db
include fifo.mk
clean:
$(REBAR) clean
make -C rel/pkg clean
make -C rel/deb clean
make -C rel/pkgng clean
## LEAVING THIS IN FOR NOW
## TODO CONFORM WITH OTHER BUILD CMDS
deb-clean:
make -C rel/deb clean
deb-prepare:
$(REBAR) as deb compile
$(REBAR) as deb release
make -C rel/deb prepare
deb-package: deb-prepare
make -C rel/deb package
##
version:
@echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > dalmatinerdb.version
version_header: version
true
#@echo "-define(VERSION, <<\"$(shell cat dalmatinerdb.version)\">>)." > apps/dalmatinerdb/include/dalmatinerdb.hrl
long-test:
$(REBAR) as eqc,long eunit