File: rules

package info (click to toggle)
gobgp 1.15-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,048 kB
  • ctags: 5,991
  • sloc: python: 8,941; sh: 3,690; cpp: 161; makefile: 72; ruby: 14
file content (11 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=golang --with=golang,bash-completion,systemd

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

override_dh_auto_configure: $(PB_GO_FILES)
	dh_auto_configure