summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricecodder <git@icecodder.me>2023-01-14 18:07:01 +0100
committerGitHub <noreply@github.com>2023-01-14 18:07:01 +0100
commit5b054b0657ae4cce46d1a3874628368bfadcb356 (patch)
tree384777fb02f5306dd79323b17fe8a83319cf0379
parent2c961cf0848bc84b74451536dfe81c38c2a8161f (diff)
linux & mac suck
-rw-r--r--Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 28c8738..100ae0a 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}
@@ -29,13 +23,9 @@ 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)
+ ifeq ($(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)
+ else
build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova
endif