-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
81 lines (69 loc) · 3.17 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Running 'make -f Makefile.download-db-libs' will automatically download all
# of the libraries needed to build the YCSB drivers.
#
CASSANDRA_5_DIR=db/cassandra-0.5/lib
CASSANDRA_5_FILE=apache-cassandra-0.5.1-bin.tar.gz
CASSANDRA_6_DIR=db/cassandra-0.6/lib
CASSANDRA_6_FILE=apache-cassandra-0.6.13-bin.tar.gz
CASSANDRA_7_DIR=db/cassandra-0.7/lib
CASSANDRA_7_FILE=apache-cassandra-0.7.9-bin.tar.gz
CASSANDRA_8_DIR=db/cassandra-0.8/lib
CASSANDRA_8_FILE=apache-cassandra-0.8.7-bin.tar.gz
HBASE_DIR=db/hbase/lib
HBASE_FILE=hbase-0.90.4.tar.gz
INFINISPAN_DIR=db/infinispan-5.0/lib
INFINISPAN_FILE=infinispan-5.0.0.CR8-bin.zip
MONGODB_DIR=db/mongodb/lib
MONGODB_FILE=mongo-2.7.2.jar
REDIS_DIR=db/redis/lib
REDIS_FILE=jedis-2.0.0.jar
VOLDEMORT_DIR=db/voldemort/lib
VOLDEMORT_FILE=voldemort-0.90.1.tar.gz
.PHONY: build
build: download-database-deps
ant -q -e compile
grep name=\"dbcompile build.xml | perl -ne '$$_=~/name=\"(.+)\"\s+depends/; print "$$1\n"; system "ant -q -e $$1"'
download-database-deps: $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) \
$(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) \
$(CASSANDRA_7_DIR)/$(CASSANDRA_7_FILE) \
$(CASSANDRA_8_DIR)/$(CASSANDRA_8_FILE) \
$(HBASE_DIR)/$(HBASE_FILE) \
$(INFINISPAN_DIR)/$(INFINISPAN_FILE) \
$(MONGODB_DIR)/$(MONGODB_FILE) \
$(REDIS_DIR)/$(REDIS_FILE) \
$(VOLDEMORT_DIR)/$(VOLDEMORT_FILE) \
$(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE) :
wget http://archive.apache.org/dist/cassandra/0.5.1/$(CASSANDRA_5_FILE)\
-O $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE)
tar -C $(CASSANDRA_5_DIR) -zxf $(CASSANDRA_5_DIR)/$(CASSANDRA_5_FILE)
$(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE) :
wget http://archive.apache.org/dist/cassandra/0.6.13/$(CASSANDRA_6_FILE)\
-O $(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE)
tar -C $(CASSANDRA_6_DIR) -zxf $(CASSANDRA_6_DIR)/$(CASSANDRA_6_FILE)
$(CASSANDRA_7_DIR)/$(CASSANDRA_7_FILE) :
wget http://archive.apache.org/dist/cassandra/0.7.9/$(CASSANDRA_7_FILE)\
-O $(CASSANDRA_7_DIR)/$(CASSANDRA_7_FILE)
tar -C $(CASSANDRA_7_DIR) -zxf $(CASSANDRA_7_DIR)/$(CASSANDRA_7_FILE)
$(CASSANDRA_8_DIR)/$(CASSANDRA_8_FILE) :
wget http://archive.apache.org/dist/cassandra/0.8.7/$(CASSANDRA_8_FILE)\
-O $(CASSANDRA_8_DIR)/$(CASSANDRA_8_FILE)
tar -C $(CASSANDRA_8_DIR) -zxf $(CASSANDRA_8_DIR)/$(CASSANDRA_8_FILE)
$(HBASE_DIR)/$(HBASE_FILE) :
wget http://archive.apache.org/dist/hbase/hbase-0.90.4/$(HBASE_FILE)\
-O $(HBASE_DIR)/$(HBASE_FILE)
tar -C $(HBASE_DIR) -zxf $(HBASE_DIR)/$(HBASE_FILE)
$(INFINISPAN_DIR)/$(INFINISPAN_FILE) :
wget http://iweb.dl.sourceforge.net/project/infinispan/infinispan/5.0.0.CR8/$(INFINISPAN_FILE)\
-O $(INFINISPAN_DIR)/$(INFINISPAN_FILE)
unzip -a $(INFINISPAN_DIR)/$(INFINISPAN_FILE) -d $(INFINISPAN_DIR)
$(MONGODB_DIR)/$(MONGODB_FILE) :
wget https://github.com/downloads/mongodb/mongo-java-driver/$(MONGODB_FILE)\
-O $(MONGODB_DIR)/$(MONGODB_FILE)
$(REDIS_DIR)/$(REDIS_FILE) :
wget https://github.com/downloads/xetorthio/jedis/$(REDIS_FILE)\
-O $(REDIS_DIR)/$(REDIS_FILE)
$(VOLDEMORT_DIR)/$(VOLDEMORT_FILE) :
wget https://github.com/downloads/voldemort/voldemort/$(VOLDEMORT_FILE)\
-O $(VOLDEMORT_DIR)/$(VOLDEMORT_FILE)
tar -C $(VOLDEMORT_DIR) -zxf $(VOLDEMORT_DIR)/$(VOLDEMORT_FILE)