meshname/Makefile
2024-06-14 04:25:02 +00:00

21 lines
367 B
Makefile

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