29 lines
304 B
Makefile
29 lines
304 B
Makefile
BINARY = ssh-chat
|
|
KEY = host_key
|
|
PORT = 2022
|
|
|
|
all: $(BINARY)
|
|
|
|
**/*.go:
|
|
go build ./...
|
|
|
|
$(BINARY): **/*.go *.go
|
|
go build .
|
|
|
|
deps:
|
|
go get .
|
|
|
|
build: $(BINARY)
|
|
|
|
clean:
|
|
rm $(BINARY)
|
|
|
|
$(KEY):
|
|
ssh-keygen -f $(KEY) -P ''
|
|
|
|
run: $(BINARY) $(KEY)
|
|
./$(BINARY) -i $(KEY) --bind ":$(PORT)" -vv
|
|
|
|
test:
|
|
go test .
|