forked from windock/erlyvideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 991 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
43
44
45
ERL=erl +A 4 +K true
APP_NAME=ems
NODE_NAME=$(APP_NAME)@`hostname`
VSN=0.1
MXMLC=mxmlc
all: ebin/erlmedia.app
erl -make
ebin/erlmedia.app:
cp src/erlmedia.app ebin/erlmedia.app
doc:
$(ERL) -pa `pwd`/ebin \
-noshell \
-run edoc_run application "'$(APP_NAME)'" '"."' '[{def,{vsn,"$(VSN)"}}]'
clean:
rm -fv ebin/*.beam
rm -fv erl_crash.dump
clean-doc:
rm -fv doc/*.html
rm -fv doc/edoc-info
rm -fv doc/*.css
player:
$(MXMLC) -default-background-color=#000000 -default-frame-rate=24 -default-size 960 550 -optimize=true -output=wwwroot/player/player.swf wwwroot/player/player.mxml
run: ebin/erlmedia.app
$(ERL) +bin_opt_info +debug \
-pa `pwd`/ebin -pa `pwd`/deps/*/ebin \
-boot start_sasl \
-s $(APP_NAME) \
-name $(NODE_NAME)
start: ebin/erlmedia.app
$(ERL) -pa `pwd`/ebin -pa `pwd`/deps/*/ebin \
-sasl sasl_error_logger '{file, "sasl.log"}' \
-kernel error_logger '{file, "erlang.log"}' \
-boot start_sasl \
-s $(APP_NAME) \
-name $(NODE_NAME) \
-detached