ssh-chat/Makefile

29 lines
304 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 .
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
test:
go test .