summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn1c00o <n@nc0.fr>2023-01-14 18:54:54 +0100
committern1c00o <n@nc0.fr>2023-01-14 18:54:54 +0100
commit730bbee31ee04e1c59b8b63c616d5c9b174616d7 (patch)
tree2b549bdeace5fd662f33e980d4c836d0e9b15ce3
parentd92f8671ef56c0a9e2f71379559fc42cec0ebbf6 (diff)
parent9fe8ba0b29d724a3a5ecc93f8be9ab935b256347 (diff)
Merge branch 'main' of https://github.com/discordnova/Nova
-rw-r--r--Makefile23
1 files changed, 1 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 28c8738..a2dd621 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,3 @@
-ifeq ($(OS),Windows_NT)
- detected_OS := Windows
-else
- detected_OS := $(shell uname -s)
-endif
-
# Creates the bin folder for build artifacts
build/{bin,lib}:
@mkdir -p build/{lib,bin}
@@ -15,12 +9,6 @@ build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe
@cp target/release/liball_in_one.a build/lib
@cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin
-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
@@ -28,16 +16,7 @@ internal/pkg/all-in-one/all-in-one.h: build/lib/liball_in_one.a
build/bin/nova: build/lib/liball_in_one.a internal/pkg/all-in-one/all-in-one.h
go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
-all:
- ifeq ($(detected_OS),Windows)
- build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova
- endif
- ifeq ($(detected_OS),Linux)
- build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova
- endif
- ifeq ($(detected_OS),Darwin)
- build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova
- endif
+all: build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova
docker-images:
docker-compose build