Files
mailcloak/Makefile
peio 57966de4fa
All checks were successful
release / build (amd64, linux) (push) Successful in 1m32s
feat: enhance logging and refactor database handling
2026-01-23 17:54:15 +00:00

24 lines
390 B
Makefile

BINARY := mailcloak
BIN_DIR := bin
.PHONY: build run test tidy clean install
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -trimpath -ldflags="-s -w" -o bin/mailcloak ./cmd/mailcloak
run:
go run ./cmd/$(BINARY)
test:
go test ./...
tidy:
go mod tidy
clean:
rm -f $(BIN_DIR)/$(BINARY)
install: build
sudo install -m 0755 $(BIN_DIR)/$(BINARY) /usr/local/sbin/$(BINARY)