Skip to content

Commit

Permalink
chore: tweak Makefile file path archive
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Dec 16, 2023
1 parent cf3b8eb commit c5f72d0
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,27 @@ build:

build_x86_64-linux:
cargo build --release --target=x86_64-unknown-linux-gnu
tar -czvf target/roselite-x86_64-unknown-linux-gnu.tar.gz target/x86_64-unknown-linux-gnu/release/roselite README.md LICENSE
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
tar -czvf target/roselite-i686-unknown-linux-gnu.tar.gz target/i686-unknown-linux-gnu/release/roselite README.md LICENSE
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
tar -czvf target/roselite-aarch64-unknown-linux-gnu.tar.gz target/aarch64-unknown-linux-gnu/release/roselite README.md LICENSE
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:
Expand Down

0 comments on commit c5f72d0

Please sign in to comment.