diff --git a/Makefile b/Makefile index c01dd23..4fabc3b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ BINARY_NAME=go-fast-cdn +OS_NAME := $(shell uname -s | tr A-Z a-z) prep: go mod tidy @@ -16,7 +17,11 @@ build_bin: CC="x86_64-w64-mingw32-gcc" GOARCH=amd64 GOOS=windows CGO_ENABLED=0 go build ./backend/cmd/ -o bin/${BINARY_NAME}-windows run: build - bin/${BINARY_NAME}-linux +ifeq ($(OS_NAME),) + bin/${BINARY_NAME}-windows +else + bin/${BINARY_NAME}-${OS_NAME} +endif clean: go clean