From: icecodder Date: Sat, 14 Jan 2023 17:01:17 +0000 (+0100) Subject: (really) ftw X-Git-Tag: v0.1.1~28 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2c961cf0848bc84b74451536dfe81c38c2a8161f;p=matthieu%2Fnova.git (really) ftw --- diff --git a/Makefile b/Makefile index 8552afb..28c8738 100644 --- a/Makefile +++ b/Makefile @@ -28,15 +28,16 @@ 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 -ifeq ($(detected_OS),Windows) - all: build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin/nova -endif -ifeq ($(detected_OS),Linux) - all: build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova -endif -ifeq ($(detected_OS),Darwin) - all: build/bin/{cache,gateway,ratelimit,rest,webhook} build/bin/nova -endif +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 docker-images: docker-compose build