Files
gemserve/Makefile
antanst 3a5835fc42 .
2025-10-09 17:43:23 +03:00

50 lines
637 B
Makefile

SHELL := /bin/sh
export PATH := $(PATH)
all: fmt lintfix tidy test clean build
clean:
rm -rf ./dist
debug:
@echo "PATH: $(PATH)"
@echo "GOPATH: $(shell go env GOPATH)"
@which go
@which gofumpt
@which golangci-lint
# Test
test:
go test ./...
tidy:
go mod tidy
# Format code
fmt:
gofumpt -l -w .
# Run linter
lint: fmt
golangci-lint run
# Run linter and fix
lintfix: fmt
golangci-lint run --fix
build: clean
mkdir -p ./dist
go build -mod=vendor -o ./dist/gemserve ./main.go
build-docker: build
docker build -t gemserve .
show-updates:
go list -m -u all
update:
go get -u all
update-patch:
go get -u=patch all