diff options
| author | icecodder <git@icecodder.me> | 2023-01-14 18:07:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 18:07:01 +0100 |
| commit | 5b054b0657ae4cce46d1a3874628368bfadcb356 (patch) | |
| tree | 384777fb02f5306dd79323b17fe8a83319cf0379 | |
| parent | 2c961cf0848bc84b74451536dfe81c38c2a8161f (diff) | |
linux & mac suck
| -rw-r--r-- | Makefile | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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 |
