From 688a21492a06cbaf11584a1b47cd81013e8742b5 Mon Sep 17 00:00:00 2001 From: icecodder Date: Sun, 15 Jan 2023 15:46:16 +0100 Subject: [PATCH] work fine (for linux) --- Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index a2dd621..3af14fa 100644 --- 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 -- 2.39.5