-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
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/CloudifySource@cloudify.svg \
results/rtptorrent/DSpace@DSpace.svg \
results/rtptorrent/Graylog2@graylog2-server.svg \
results/rtptorrent/adamfisk@LittleProxy.svg \
results/rtptorrent/apache@sling.svg \
results/rtptorrent/brettwooldridge@HikariCP.svg \
results/rtptorrent/deeplearning4j@deeplearning4j.svg \
results/rtptorrent/doanduyhai@Achilles.svg \
results/rtptorrent/dynjs@dynjs.svg \
results/rtptorrent/eclipse@jetty.project.svg \
results/rtptorrent/facebook@buck.svg \
results/rtptorrent/jOOQ@jOOQ.svg \
results/rtptorrent/jcabi@jcabi-github.svg \
results/rtptorrent/jsprit@jsprit.svg \
results/rtptorrent/julianhyde@optiq.svg \
results/rtptorrent/l0rdn1kk0n@wicket-bootstrap.svg \
results/rtptorrent/neuland@jade4j.svg \
results/rtptorrent/square@okhttp.svg \
results/rtptorrent/SonarSource@sonarqube.svg \
results/rtptorrent/thinkaurelius@titan.svg
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 \
> $@.tmp
mv $@.tmp $@
.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