-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (31 loc) · 1.01 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
.PHONY: all
all:
make clean
make build
build:
make build_x86_64-linux
make build_i686-linux
build_x86_64-linux:
cargo build --release --target=x86_64-unknown-linux-gnu
cp README.md target
cp LICENSE target
cp target/x86_64-unknown-linux-gnu/release/roselite target/roselite
tar -czvf target/roselite-x86_64-unknown-linux-gnu.tar.gz -C target roselite README.md LICENSE
rm target/roselite
build_i686-linux:
cargo build --release --target=i686-unknown-linux-gnu
cp README.md target
cp LICENSE target
cp target/i686-unknown-linux-gnu/release/roselite target/roselite
tar -czvf target/roselite-i686-unknown-linux-gnu.tar.gz -C target roselite README.md LICENSE
rm target/roselite
build_aarch64-linux:
cargo build --release --target=aarch64-unknown-linux-gnu
cp README.md target
cp LICENSE target
cp target/aarch64-unknown-linux-gnu/release/roselite target/roselite
tar -czvf target/roselite-aarch64-unknown-linux-gnu.tar.gz -C target roselite README.md LICENSE
rm target/roselite
.PHONY: clean
clean:
cargo clean