-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.18 KB
/
Makefile
File metadata and controls
46 lines (36 loc) · 1.18 KB
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
LIB=RobotCode2026
OUT=target/arm-unknown-linux-gnueabi/release/$(LIB)
DEPLOY=javastub/src/main/deploy/$(LIB)
TEAM=25.02
PATHS=paths/*
.PHONY: check
check:
cargo check
.PHONY: compile
compile: $(OUT)
$(OUT): src/** Cargo.*
cargo build --release --target arm-unknown-linux-gnueabi
#cargo build --release --target arm-unknown-linux-gnueabi && make deploy-scp
$(dir $(DEPLOY)):
mkdir -p $(dir $(DEPLOY))
$(DEPLOY): $(dir $(DEPLOY)) $(OUT)
cp $(OUT) $(dir $(DEPLOY))
# just deploys robotcode
.PHONY: deploy-scp
deploy-scp: $(OUT)
ssh lvuser@10.$(TEAM).2 /usr/local/frc/bin/frcKillRobot.sh
ssh lvuser@10.$(TEAM).2 rm -f $(LIB)
scp $(OUT) lvuser@10.$(TEAM).2:
ssh lvuser@10.$(TEAM).2 /usr/local/frc/bin/frcRunRobot.sh
ssh lvuser@10.$(TEAM).2 chmod 755 $(LIB)
.PHONY: deploy-nb
deploy-nb:
ssh lvuser@10.$(TEAM).2 /usr/local/frc/bin/frcKillRobot.sh
ssh lvuser@10.$(TEAM).2 rm $(LIB)
scp $(OUT) lvuser@10.$(TEAM).2:
ssh lvuser@10.$(TEAM).2 chmod +x $(LIB)
ssh lvuser@10.$(TEAM).2 /usr/local/frc/bin/frcRunRobot.sh
.PHONY: deploy-paths
deploy-paths:
scp -r $(PATHS) admin@10.$(TEAM).2:/home/lvuser/deploy/choreo/
#scp target/arm-unknown-linux-gnueabi/release/RobotCode2026 lvuser@10.25.2.2: