forked from esl/MongooseIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (26 loc) · 754 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
.PHONY: rel deps test generate_snmp_header
EJABBERD_DIR = apps/ejabberd
EJD_INCLUDE = $(EJABBERD_DIR)/include
EJD_PRIV = $(EJABBERD_DIR)/priv
EJD_PRIV_MIB = $(EJD_PRIV)/mibs
EJD_MIB = $(EJABBERD_DIR)/mibs
all: deps compile
compile: generate_snmp_header
./rebar compile
deps: generate_snmp_header
./rebar get-deps
clean:
./rebar clean
test:
(cd test; make)
eunit:
./rebar skip_deps=true eunit
rel: deps
./rebar compile generate
generate_snmp_header: apps/ejabberd/include/EJABBERD-MIB.hrl
$(EJD_INCLUDE)/EJABBERD-MIB.hrl: $(EJD_PRIV_MIB)/EJABBERD-MIB.bin
erlc -o $(EJD_INCLUDE) $<
$(EJD_PRIV_MIB)/EJABBERD-MIB.bin: $(EJD_MIB)/EJABBERD-MIB.mib $(EJD_MIB)/EJABBERD-MIB.funcs
erlc -o $(EJD_PRIV_MIB) $<
relclean:
rm -rf rel/ejabberd