.DEFAULT_GOAL := buildCmd .PHONY: fmt vet buildLib buildCmd test fmt: go fmt ./... vet: fmt go vet ./... buildLib: vet go build -gcflags="all=-N -l" ./... buildCmd: buildLib go build -C cmd/ -gcflags="all=-N -l" -o re ./... test: buildCmd go test -v ./...