-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 654 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
APPNAME=osm-cut
DOC_OPTS=[{todo, true},{packages, false}]
all: compile dializer test docs
compile:
mkdir -p ebin
mkdir -p test/ebin
erl -pa `pwd`/ebin -make
cp -f src/*.app ebin/
clean:
rm -rf ./ebin/*.*
rm -rf ./doc/*.*
rm -rf ./test/ebin/*.*
rm -rf ./test/logs/*
rm -rf ./test/*.beam
dializer:
dialyzer --no_check_plt -I include -r ebin
docs:
erl -noshell -run edoc_run application "'$(APPNAME)'" '"."' "$(DOC_OPTS)" -s init stop
test: compile
mkdir -p test/logs
erl -sname ct -s ct_run script_start -s erlang halt -r \
-pa `pwd`/ebin/ `pwd`/lib/*/ebin/ \
-include `pwd`/src `pwd`/include -dir test -logdir test/logs