From: icecodder Date: Sat, 14 Jan 2023 16:08:39 +0000 (+0100) Subject: makefile os agnostic X-Git-Tag: v0.1.1~33 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=24832713ade0852e77f2de01cd824c34fc63fff3;p=matthieu%2Fnova.git makefile os agnostic --- diff --git a/Makefile b/Makefile index 0a99614..c5f5687 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,11 @@ build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe @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