From: icecodder Date: Sat, 14 Jan 2023 17:07:01 +0000 (+0100) Subject: linux & mac suck X-Git-Tag: v0.1.1~26^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5b054b0657ae4cce46d1a3874628368bfadcb356;p=matthieu%2Fnova.git linux & mac suck --- 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