-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 1.05 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
run:
cargo run
release:
cargo build --release
install:
sudo cp target/aarch64-apple-darwin/release/mot /usr/local/bin
macos_aarch:
#rustup target add aarch64-apple-darwin
cargo build --release --target=aarch64-apple-darwin
macos_intel:
cargo build --release --target=x86_64-apple-darwin
rpi_install:
rustup target add armv7-unknown-linux-gnueabihf
rustup toolchain install stable-armv7-unknown-linux-gnueabihf
rpi_release:
cargo build --release --target=armv7-unknown-linux-gnueabihf
linux_install:
rustup toolchain install stable-x86_64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu
linux_release:
cargo build --release --target=x86_64-unknown-linux-gnu
#install linker and rust target
win_install:
brew install mingw-w64
rustup target add x86_64-pc-windows-gnu
rustup toolchain install stable-x86_64-pc-windows-gnu
win_release:
cargo build --release --target=x86_64-pc-windows-gnu
cp target/x86_64-pc-windows-gnu/release/mot.exe executables/
#https://rust-lang.github.io/rustup-components-history/
list:
rustup target list