-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
26 lines (20 loc) · 972 Bytes
/
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
test:
RUST_BACKTRACE=1 python -m unittest test-data/test.py
arm:
cargo build --release --target=armv7-unknown-linux-gnueabihf
toltec:
mkdir -p deps
podman run --name remarkable-build -v deps:/root/.cargo/registry -v .:/project --rm -it ghcr.io/toltec-dev/rust:v2.1 make -C /project toltec-internal
toltec-internal:
cargo build --release --target=armv7-unknown-linux-gnueabihf # || bash
target/armv7-unknown-linux-gnueabihf/release/fuse-rm: toltec
deploy-rm: target/armv7-unknown-linux-gnueabihf/release/fuse-rm
ssh root@remarkable "systemctl stop fuse-rm; \
ln -sf /home/root/.local/share/remarkable/xochitl/ /home/root/rmlibrary"
scp $? root@remarkable:/opt/bin/
scp fuse-rm.service root@remarkable:/lib/systemd/system
ssh root@remarkable systemctl restart fuse-rm
upload-bin: target/armv7-unknown-linux-gnueabihf/release/fuse-rm
ssh root@remarkable systemctl stop fuse-rm
scp $? root@remarkable:/opt/bin/
ssh root@remarkable systemctl restart fuse-rm