-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (44 loc) · 2.05 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
ifndef RTP_TORRENT
$(error RTP_TORRENT is not set)
endif
JAVA_FILES = $(shell find src/main -name "*.java")
svgs: results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected] \
results/rtptorrent/[email protected]
results/rtptorrent/%.csv: scripts/tcpbench.sh target/tcpbench-0.0.1-SNAPSHOT.jar
mkdir -p $(@D)
$< \
--rtptorrent $(RTP_TORRENT)/$$(basename $(@D)) \
--engine $$(basename $@ .csv) \
--training 10 \
--prediction 30 \
mv [email protected] $@
.PRECIOUS: results/rtptorrent/%.csv
results/rtptorrent/%.svg: scripts/boxplot.plg \
results/rtptorrent/%/com.smartbear.tcpbench.engines.OptimalOrder.csv \
results/rtptorrent/%/com.smartbear.tcpbench.engines.OriginalOrder.csv \
results/rtptorrent/%/com.smartbear.tcpbench.engines.RandomOrder.csv \
results/rtptorrent/%/com.smartbear.tcpbench.engines.FailureFrequencyOrder.csv \
$(if $(COMET_URL), results/rtptorrent/%/com.smartbear.tcpbench.engines.Comet.csv) \
$(if $(SMARTBEAR_TCP_DIR), results/rtptorrent/%/com.smartbear.tcpbench.engines.SmartBearOrder.csv) \
gnuplot -e "filenames='$(wordlist 2, $(words $^), $^)'" $< > $@
target/tcpbench-0.0.1-SNAPSHOT.jar: $(JAVA_FILES) pom.xml
mvn package