-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 819 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TARGET_HOST="mathhsro"
default: compile
# done
run:
cargo run --release local all
run-musl:
cargo run --target x86_64-unknown-linux-musl --release local all
compile:
cargo build --release
compile-musl:
cargo build --target x86_64-unknown-linux-musl --release
compileDocker: clean
docker run --rm -it -v $$(pwd):/compile -e TARGET_UID="$$(id --user)" -e TARGET_GID="$$(id --group)" dns2utf8/rust-old
deploy: compileDocker
ssh ${TARGET_HOST} 'cat > lasttest' < target/release/lasttest
clean:
rm -rf target || true
dockerContainer:
docker build --tag="dns2utf8/rust-old" .
musl:
cargo build --release --target=x86_64-unknown-linux-musl
setupClippy:
rustup run nightly cargo uninstall clippy
rustup update
rustup run nightly cargo install clippy
clippy:
rustup run nightly cargo clippy --release