-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (48 loc) · 1.39 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# leave these lines alone
.SUFFIXES: .erl .beam
.erl.beam:
erlc -I include -o ebin -W $<
ERL = erl -boot start_clean
# Here's a list of the erlang modules you want compiling
# If the modules don't fit onto one line add a \ character
# to the end of the line and continue on the next line
# Edit the lines below
MODS = src/yggdrasil \
src/yggdrasil_sup \
src/yggdrasil_receiver_sup \
src/yggdrasil_receiver \
src/yggdrasil_json_protocol \
src/yggdrasil_listener \
src/yggdrasil_router \
src/yggdrasil_utils \
src/yggresource_world \
src/yggresource_space_sup \
src/yggresource_space \
src/yggresource_actor_sup \
src/yggresource_actor \
src/mochijson2
# The first target in any makefile is the default target.
# If you just type "make" then "make all" is assumed (because
# "all" is the first target in this makefile)
all: compile
#compile: ${MODS:%=%.beam} subdirs
compile: ${MODS:%=%.beam}
## special compilation requirements are added here
#special1.beam: special1.erl
# ${ERL} -Dflag1 -W0 special1.erl
## run an application from the makefile
run: compile
scripts/yggdrasil.sh
nrun: compile
${ERL} -pa ./ -s yggdrasil -noshell
# the subdirs target compiles any code in
# sub-directories
#subdirs:
# cd dir1; make
# cd dir2; make
# ...
# remove all the code
clean:
rm -rf *.beam erl_crash.dump
# cd dir1; make clean
# cd dir2; make clean