]> git.puffer.fish Git - matthieu/nova.git/commitdiff
makefile os agnostic
authoricecodder <git@icecodder.me>
Sat, 14 Jan 2023 16:08:39 +0000 (17:08 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 16:08:39 +0000 (17:08 +0100)
Makefile

index 0a99614ed67971e976db3ce9dfa198b261fe8690..c5f5687d6d1171d4fe77e2d1a57e4d5b735a250a 100644 (file)
--- 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