Files
mailcloak/Makefile
2026-01-21 19:56:07 +00:00

27 lines
392 B
Makefile

BINARY := mailcloak
BIN_DIR := bin
.PHONY: build run test tidy clean install
build:
export CGO_ENABLED=0
go build \
-trimpath \
-ldflags="-s -w" \
-o "$(BIN_DIR)/$(BINARY)" ./cmd/$(BINARY)
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)