Files
webhooker/Makefile
2026-03-01 22:52:08 +07:00

39 lines
530 B
Makefile

.PHONY: test fmt lint build run clean
# Default target
test: lint
go test -v ./...
fmt:
go fmt ./...
lint:
golangci-lint run
build: test
go build -o bin/webhooker cmd/webhooker/main.go
run: build
./bin/webhooker
clean:
rm -rf bin/
# Development helpers
.PHONY: dev deps
dev:
go run cmd/webhooker/main.go
deps:
go mod download
go mod tidy
# Docker targets
.PHONY: docker-build docker-run
docker-build:
docker build -t webhooker:latest .
docker-run: docker-build
docker run --rm -p 8080:8080 webhooker:latest