2020-08-18 20:48:55 +00:00
|
|
|
ALL_PACKAGES=$(shell go list ./... | grep -v "vendor")
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
go fmt $(ALL_PACKAGES)
|
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet $(ALL_PACKAGES)
|
|
|
|
|
|
|
|
tidy:
|
|
|
|
go mod tidy
|
|
|
|
|
|
|
|
serve: fmt vet
|
2024-05-13 18:37:36 +00:00
|
|
|
env $(cat dev.env | xargs) go run ./cmd
|
2024-05-13 18:33:02 +00:00
|
|
|
|
|
|
|
build: fmt vet
|
|
|
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bin/openwebui-telegram ./cmd
|