Files
sandbox/envd/Makefile
pptx704 bd78cc068c Initial project structure for Wrenn Sandbox
Set up directory layout, Makefiles, go.mod files, docker-compose,
and empty placeholder files for all packages.
2026-03-09 17:22:47 +06:00

18 lines
298 B
Makefile

LDFLAGS := -s -w
.PHONY: build clean fmt vet
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o envd .
@file envd | grep -q "statically linked" || \
(echo "ERROR: envd is not statically linked!" && exit 1)
clean:
rm -f envd
fmt:
gofmt -w .
vet:
go vet ./...