Add entrypoint

This commit is contained in:
Manfred Touron
2016-12-13 16:03:16 +01:00
parent f62940ac4c
commit d748878896
18 changed files with 541 additions and 305 deletions

View File

@@ -4,10 +4,13 @@ TARGETS_GO := $(foreach source, $(SOURCES), $(source)_go)
TARGETS_TMPL := $(foreach source, $(SOURCES), $(source)_tmpl)
.PHONY: build
build: $(TARGETS_GO) $(TARGETS_TMPL)
build: server
server: $(TARGETS_GO) $(TARGETS_TMPL)
go build -o server .
$(TARGETS_GO): %_go:
protoc --gogo_out=. "$*"
protoc --gogo_out=plugins=grpc:. "$*"
$(TARGETS_TMPL): %_tmpl:
@mkdir -p $(dir $*)gen