-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 950 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 950 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
include hosts.mk
# EDIT THIS
MASTER_CMD=python3 sample_server.py
TABLET_CMD=source tablet_proj/bin/activate; pip install -r tablet_proj/requirements.txt; python tablet_proj/tablet_server.py
WAL=wal
SSTABLE_FOLDER=sst
# END EDIT REGION
# if you require any compilation, fill in this section
compile:
echo "no compile"
grade1:
python3 grading/grading.py 1 $(TABLET_HOSTNAME) $(TABLET_PORT)
grade2:
python3 grading/grading.py 2 $(MASTER_HOSTNAME) $(MASTER_PORT)
master:
$(MASTER_CMD) $(MASTER_HOSTNAME) $(MASTER_PORT)
tablet1:
$(TABLET_CMD) $(TABLET1_HOSTNAME) $(TABLET1_PORT) $(MASTER_HOSTNAME) $(MASTER_PORT) $(WAL) $(SSTABLE_FOLDER)
tablet2:
$(TABLET_CMD) $(TABLET2_HOSTNAME) $(TABLET2_PORT) $(MASTER_HOSTNAME) $(MASTER_PORT) $(WAL) $(SSTABLE_FOLDER)
tablet3:
$(TABLET_CMD) $(TABLET3_HOSTNAME) $(TABLET3_PORT) $(MASTER_HOSTNAME) $(MASTER_PORT) $(WAL) $(SSTABLE_FOLDER)
.PHONY: master tablet1 tablet2 tablet3 grade1 grade2 compile