-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (46 loc) · 1.22 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
# Custom scripts for setup only. Uses bash scripts at the root level to encapsulate complex logic.
initialize :
@echo "Initializing..."
find ./ -type f -iname "*.sh" -exec chmod +x {} \;
./init.sh
install :
./add-dep.sh
# Custom scripts for development. Uses bash scripts located within scripts/ in each sub-repo for more granular control.
build :
@echo "Building..."
cd server && ./scripts/build.sh
cd bot && ./scripts/build.sh
clean :
@echo "Cleaning..."
rm -rf ./server/_build
rm -rf ./bot/_build
run :
@echo "Running..."
cd server && ./scripts/run.sh
cd bot && ./scripts/run.sh
kill :
@echo "Killing running scripts..."
cd server && ./scripts/kill.sh
cd bot && ./scripts/kill.sh
# Tests all the code and outputs the results to the console.
test:
@echo "Testing..."
cd server && dune exec test/main.exe
# Commands to help with submission.
doc:
./doc.sh
loc:
./loc.sh
zip:
@echo "Zipping..."
rm -rf ./server/_build
rm -rf ./bot/_build
rm -f g511.zip
zip -r g511.zip .
cd server && ./scripts/build.sh
cd bot && ./scripts/build.sh
# Commands to help with maintaining a deployed version.
force-update:
@echo "Force updating the local copy from main on origin..."
git fetch --all
git reset --hard origin/main