@echo "Building rust project"
cargo build --release
@cp target/release/liball_in_one.a build/lib
- @cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin || true
+ ifeq ($(OS),Windows_NT)
+ @cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin || true
+ else
+ @cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin || true
+ endif
# Generated by a rust build script.
internal/pkg/all-in-one/all-in-one.h: build/lib/liball_in_one.a