GOARCH := $(GOARCH) GOOS := $(GOOS) FLAGS := -ldflags "-s -w" all: meshnamed whoami meshnamed: GOARCH=$$GOARCH GOOS=$$GOOS go build $(FLAGS) ./cmd/meshnamed whoami: GOARCH=$$GOARCH GOOS=$$GOOS go build $(FLAGS) ./cmd/whoami clean: $(RM) meshnamed meshnamed.exe whoami whoami.exe test: go test pkg/meshname/*_test.go .PHONY: all meshnamed whoami clean test