-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (26 loc) · 741 Bytes
/
makefile
File metadata and controls
36 lines (26 loc) · 741 Bytes
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
SHELL := /bin/bash
CWD = $(shell pwd)
EMUD_LIBS = $(CWD)/lib/:$(CWD)/deps/
build: tags
for app in lib/*; do cd $$app; [ -a 'makefile' ] && make; cd -; done
./rebar compile
test: tags
for app in lib/*; do cd $$app; [ -a 'test/init.sh' ] && ERL_LIBS=$(EMUD_LIBS) test/init.sh; cd -; done
ERL_LIBS=$(EMUD_LIBS) ./rebar eunit skip_deps=true
check: build
dialyzer -r lib/**/src/ --src --no_check_plt
type:
typer lib/**/src/
shell: build data
erl -env ERL_LIBS "lib/:deps/" -mnesia dir "data" +A 4 -eval "startup:all()."
tags:
@ctags -R -f .tags --exclude="ebin|\.test|\.eunit" lib/
data:
mkdir data
plt:
dialyzer --build_plt --apps kernel erts stdlib mnesia crypto
deps:
./rebar get-deps
clean:
./rebar clean
rm -rf data