hodu/Makefile
hyung-hwan dcdadbeb20 separating http handler to separate structs
using the pattern supported by http.ServeMux since go 1.22
2024-11-25 19:46:18 +09:00

34 lines
571 B
Makefile

SRCS=\
client.go \
client-ctl.go \
client-peer.go \
frame.go \
hodu.go \
hodu.pb.go \
hodu_grpc.pb.go \
packet.go \
server.go \
server-peer.go \
cmd/main.go
all: hodu
hodu: $(SRCS)
go build -x -o $@ cmd/main.go
clean:
go clean -x -i
rm -f hodu
hodu.pb.go: hodu.proto
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
hodu.proto
hodu_grpc.pb.go: hodu.proto
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
hodu.proto
.PHONY: clean