diff options
| author | icecodder <git@icecodder.me> | 2023-01-15 15:46:16 +0100 |
|---|---|---|
| committer | icecodder <git@icecodder.me> | 2023-01-15 15:46:16 +0100 |
| commit | 688a21492a06cbaf11584a1b47cd81013e8742b5 (patch) | |
| tree | 6edfbf57d7692d07807ea80fc80e95a2bb38046d /Makefile | |
| parent | bc5d94aeb8fab38a77a419c49a5a51d841764f67 (diff) | |
work fine (for linux)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -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 |
