ssh-chat/Makefile

33 lines
455 B
Makefile
Raw Normal View History

2014-12-10 00:51:24 +01:00
BINARY = ssh-chat
KEY = host_key
PORT = 2022
all: $(BINARY)
**/*.go:
go build ./...
$(BINARY): **/*.go *.go
go build -ldflags "-X main.buildCommit `git rev-parse --short HEAD`" .
2014-12-10 00:51:24 +01:00
deps:
go get .
2014-12-10 00:51:24 +01:00
build: $(BINARY)
clean:
rm $(BINARY)
2014-12-10 03:22:46 +01:00
$(KEY):
2014-12-10 00:51:24 +01:00
ssh-keygen -f $(KEY) -P ''
run: $(BINARY) $(KEY)
2014-12-12 23:50:14 +01:00
./$(BINARY) -i $(KEY) --bind ":$(PORT)" -vv
2014-12-12 07:19:04 +01:00
debug: $(BINARY) $(KEY)
./$(BINARY) --pprof 6060 -i $(KEY) --bind ":$(PORT)" -vv
2014-12-12 07:19:04 +01:00
test:
2014-12-15 03:42:38 +01:00
go test .
golint