File: rules

package info (click to toggle)
golang-google-grpc 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,400 kB
  • sloc: makefile: 60; sh: 40
file content (31 lines) | stat: -rwxr-xr-x 854 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DH_GOLANG_EXCLUDES := naming/etcd test
export DH_GOLANG_INSTALL_EXTRA := interop/server/testdata \
    interop/client/testdata transport/testdata testdata \
    examples/route_guide/testdata benchmark/server/testdata test/testdata

%:
	dh $@ --buildsystem=golang --with=golang --parallel

PB_FILES := $(wildcard */*/*.proto */*/*/*.proto)
PB_GO_FILES := $(patsubst %.proto, %.pb.go, $(PB_FILES))
$(PB_GO_FILES):
%.pb.go: %.proto
	protoc -I$(dir $@) --go_out=plugins=grpc:$(dir $@) \
	    $(sort $(wildcard $(dir $@)*.proto))

override_dh_clean:
	dh_clean $(PB_GO_FILES)

override_dh_auto_configure: $(PB_GO_FILES)
	dh_auto_configure

override_dh_auto_test:
	dh_auto_test -- google.golang.org/grpc/test

override_dh_auto_install:
	dh_auto_install -- --no-binaries