]> git.puffer.fish Git - matthieu/nova.git/commitdiff
work fine (for linux)
authoricecodder <git@icecodder.me>
Sun, 15 Jan 2023 14:46:16 +0000 (15:46 +0100)
committericecodder <git@icecodder.me>
Sun, 15 Jan 2023 14:46:16 +0000 (15:46 +0100)
Makefile

index a2dd621e50a1f4e812d720b1eaf3123dd35e6a38..3af14fa060ca1b32190c97a03f86d26e33afcb2e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,17 @@
-# Creates the bin folder for build artifacts
-build/{bin,lib}:
-       @mkdir -p build/{lib,bin}
-
-# Builds all rust targets
-build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe}: build/{bin,lib}
+# Build nova all-in-one bin
+all:
+       # Creates bin folder for artifacts
+       @mkdir -p build/{bin,lib}
+       
+       # Builds rust
        @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
-
-# Generated by a rust build script.
-internal/pkg/all-in-one/all-in-one.h: build/lib/liball_in_one.a
+       @cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin
 
-# All in one program build
-build/bin/nova: build/lib/liball_in_one.a internal/pkg/all-in-one/all-in-one.h
+       # Builds go
        go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
 
-all: build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova
-
 docker-images:
        docker-compose build