mirror of
https://github.com/132nd-vWing/tacview-splitter.git
synced 2026-08-26 06:48:36 +02:00
updated build scripts
This commit is contained in:
@@ -6,27 +6,22 @@ RELEASE_WINDOWS=tacview-splitter-win10-x86_64.zip
|
||||
BIN_LINUX=target/x86_64-unknown-linux-gnu/release/tacview-splitter
|
||||
BIN_WINDOWS=target/x86_64-pc-windows-gnu/release/tacview-splitter.exe
|
||||
|
||||
TEST_FILES=Tacview-20210606-222650-DCS-ATRM_2.7.0.443.txt.acmi Tacview-20210606-222650-DCS-ATRM_2.7.0.443.zip.acmi Tacview-20210608-085030-DCS-Georgia_At_War_v3.0.24_afternoon.txt.acmi Tacview-20210608-085030-DCS-Georgia_At_War_v3.0.24_afternoon.zip.acmi
|
||||
TEST_FILES=Tacview-20220811-204919-DCS-Georgia-At-War-v3.0.24_afternoon.zip.acmi
|
||||
|
||||
default: release
|
||||
|
||||
.built: src/lib.rs src/main.rs Cargo.toml
|
||||
.built:
|
||||
cargo build --release --target x86_64-unknown-linux-gnu
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
touch .built
|
||||
|
||||
build: .built
|
||||
|
||||
.stripped: .built
|
||||
strip ${BIN_LINUX} ${BIN_WINDOWS}
|
||||
touch .stripped
|
||||
|
||||
strip: .stripped
|
||||
|
||||
.tested: .stripped
|
||||
.tested: .built
|
||||
for file in ${TEST_FILES}; do \
|
||||
mkdir -p test; \
|
||||
cp testfiles/$$file test; \
|
||||
if [[ $$? != 0 ]]; then exit 1; fi;\
|
||||
cd test; \
|
||||
../${BIN_LINUX}; \
|
||||
cd ../ ; \
|
||||
@@ -49,4 +44,4 @@ test: .tested
|
||||
release: .released
|
||||
|
||||
clean:
|
||||
rm -rf release target test .released .tested .stripped .built
|
||||
rm -rf release target test .released .tested .built
|
||||
|
||||
Reference in New Issue
Block a user