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

index c5f5687d6d1171d4fe77e2d1a57e4d5b735a250a..5427f196a6f703256bd077925b27c05e0915dda0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,15 +3,19 @@ build/{bin,lib}:
        @mkdir -p build/{lib,bin}
 
 # Builds all rust targets
+ifeq ($(OS),Windows_NT)
 build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe}: build/{bin,lib}
        @echo "Building rust project"
        cargo build --release
        @cp target/release/liball_in_one.a build/lib
-       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
+       @cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin
+endif
+
+build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}: build/{bin,lib}
+       @echo "Building rust project"
+       cargo build --release
+       @cp target/release/liball_in_one.a build/lib
+       @cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin
 
 # Generated by a rust build script.
 internal/pkg/all-in-one/all-in-one.h: build/lib/liball_in_one.a