add version

This commit is contained in:
2023-06-14 23:33:24 -04:00
parent 9547004867
commit 06f1fb2924
9 changed files with 101 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
# Binary name
BINARY_NAME=kode-starter
all: test build
build:
$(GOBUILD) -o $(BINARY_NAME) -v
test:
$(GOTEST) -v ./...
clean:
$(GOCLEAN)
rm -f $(BINARY_NAME)
release: clean
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME) -v
.PHONY: all build test clean release