Skip to content

Commit

Permalink
feat: support for more OS (kevinanielsen#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caixetadev committed Jan 28, 2024
1 parent 4092f85 commit d9171dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BINARY_NAME=go-fast-cdn
OS_NAME := $(shell uname -s | tr A-Z a-z)

prep:
go mod tidy
Expand All @@ -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
Expand Down

0 comments on commit d9171dd

Please sign in to comment.