forked from webmachine/webmachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 981 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
42
ERL ?= erl
APP := webmachine
REPO = ${shell echo `basename "$${PWD}"`}
ARTIFACTSFILE = ${shell echo ${REPO}-`date +%F_%H-%M-%S`.tgz}
.PHONY: deps
all: deps compile
compile: deps
./rebar compile
deps: DEV_MODE
@(./rebar get-deps)
clean:
@(./rebar clean)
# nuke deps first to avoid wasting time having rebar recurse into deps
# for clean
distclean:
@rm -rf deps ./rebar/DEV_MODE
@(./rebar clean)
edoc:
@$(ERL) -noshell -run edoc_run application '$(APP)' '"."' '[{preprocess, true},{includes, ["."]}]'
DIALYZER_APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
COMBO_PLT = $(HOME)/.webmachine_dialyzer_plt
include tools.mk
verbosetest: all
@(./rebar -v skip_deps=true eunit)
travisupload:
tar cvfz ${ARTIFACTSFILE} --exclude '*.beam' --exclude '*.erl' test.log .eunit
travis-artifacts upload --path ${ARTIFACTSFILE}
DEV_MODE:
@touch ./.rebar/DEV_MODE