-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 738 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 738 Bytes
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
ERLC := erlc
ERL := erl
NOSE := nosetests2
TERMINAL := xterm
PYTHON := python2
HEADER_FILES := $(wildcard *.hrl)
ERL_FILES := $(wildcard *.erl)
BEAM_FILES := $(ERL_FILES:.erl=.beam)
%.beam: %.erl $(HEADER_FILES)
$(ERLC) $<
cawfs: $(BEAM_FILES)
port = 0
run: cawfs
ifndef cant
@$(ERL) -run main start $(port) $(folder)
else
@for i in {1..$(cant)}; do ($(TERMINAL) -e "$(ERL) -run main start 0 server.$$i || sleep 1d"&); done
endif
test:
@$(NOSE) clients/cawtest.py --processes=4
telnet:
@$(PYTHON) clients/cawtelnet.py
mount = client
fuse:
@mkdir -p $(mount)
@$(PYTHON) clients/cawfuse.py $(mount)
kill:
killall xterm
.PHONY: clean
clean:
rm -rf *.beam erl_crash.dump clients/*.pyc clients/__pycache__ server* client/