-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
62 lines (44 loc) · 1.33 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
.PHONY: default fast all get-deps compile dialyzer tests clean mrproper
ERL_INCLUDE = $(PWD):$(ERL_LIBS)
ifneq (,$(findstring Windows,$(OS)))
SEP := $(strip \)
else
SEP := $(strip /)
endif
BEAMS = ebin$(SEP)nifty_clangparse.beam \
ebin$(SEP)nifty.beam \
ebin$(SEP)nifty_compiler.beam \
ebin$(SEP)nifty_filters.beam \
ebin$(SEP)nifty_rebar.beam \
ebin$(SEP)nifty_tags.beam \
ebin$(SEP)nifty_types.beam \
ebin$(SEP)nifty_utils.beam
JAVA_SRC_PATH = cooja-plugin$(SEP)java$(SEP)se$(SEP)uu$(SEP)it$(SEP)parapluu$(SEP)cooja_node$(SEP)
JAVA_SRC = $(JAVA_SRC_PATH)MessageHandler.java \
$(JAVA_SRC_PATH)MoteObserver.java \
$(JAVA_SRC_PATH)SerialObserver.java \
$(JAVA_SRC_PATH)SocketControlPlugin.java
REBAR := .$(SEP)rebar
default: fast
fast: get-deps compile
all: default dialyze tests
get-deps:
$(REBAR) get-deps
compile: plugin
$(REBAR) compile
plugin: $(JAVA_SRC)
ant -f cooja-plugin$(SEP)build.xml
plugin-clean:
ant -f cooja-plugin$(SEP)build.xml clean
dialyze: compile
dialyzer -n -nn -Wunmatched_returns ebin $(find . -path 'deps/*/ebin/*.beam')
fdialyze: compile
dialyzer -n -nn -Wunmatched_returns $(BEAMS)
tests: compile
ERL_LIBS=$(ERL_INCLUDE) $(REBAR) clean compile eunit skip_deps=true
doc:
$(REBAR) doc skip_deps=true
clean: plugin-clean
$(REBAR) clean
mrproper: clean
rm -rf deps/