ssh-chat/Makefile
Matt Day ebd08408d1 make deps should be recursive
That way it gets the packages needed by `cmd/ssh-chat/...`
2015-08-20 04:42:29 -06:00

32 lines
497 B
Makefile

BINARY = ssh-chat
KEY = host_key
PORT = 2022
SRCS = %.go
all: $(BINARY)
$(BINARY): **/**/*.go **/*.go *.go
go build -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
deps:
go get ./...
build: $(BINARY)
clean:
rm $(BINARY)
$(KEY):
ssh-keygen -f $(KEY) -P ''
run: $(BINARY) $(KEY)
./$(BINARY) -i $(KEY) --bind ":$(PORT)" -vv
debug: $(BINARY) $(KEY)
./$(BINARY) --pprof 6060 -i $(KEY) --bind ":$(PORT)" -vv
test:
go test ./...
golint ./...