summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricecodder <git@icecodder.me>2023-01-14 18:27:40 +0100
committerGitHub <noreply@github.com>2023-01-14 18:27:40 +0100
commit3e41e414ba7cb35a0eebd710c033f0ce8c566f39 (patch)
tree774a413bae0533c8c9661bc77db4d098bb92711c
parentda7bd3b6c23aef2d3369989ba07e2483d8f261fd (diff)
with uname ??
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index efa4a5c..ccca3c7 100644
--- a/Makefile
+++ b/Makefile
@@ -23,16 +23,17 @@ 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:
- SYS := $(shell gcc -dumpmachine)
- ifneq (, $(findstring linux, $(SYS)))
+ #SYS := $(shell gcc -dumpmachine)
+ SYS := $(shell uname -s)
+ ifeq ($(SYS),Linux)
# Do Linux things
build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova
- else ifneq(, $(findstring mingw, $(SYS)))
- # Do MinGW things
- build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova
- else
- # Do things for others
+ else ifeq ($(SYS),Darwin)
+ # Do Darwin things
build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova
+ else
+ # Do MinGW things
+ build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova
endif
docker-images: