move whoami to its own directory

This commit is contained in:
cynic 2024-06-14 03:59:14 +00:00
parent 4b0f083f72
commit 4ad4578103
2 changed files with 8 additions and 3 deletions

View File

@ -2,13 +2,19 @@ GOARCH := $(GOARCH)
GOOS := $(GOOS)
FLAGS := -ldflags "-s -w"
all:
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
$(RM) meshnamed meshnamed.exe whoami whoami.exe
test:
go test pkg/meshname/*_test.go
.PHONY: all clean test

View File

@ -8,7 +8,6 @@ import (
"flag"
)
// define tld
var tld = flag.String("tld", "mesh.cat", "The top level domain for our network")