File: rules

package info (click to toggle)
gobgp 2.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,588 kB
  • sloc: python: 11,221; sh: 3,710; makefile: 84; cpp: 70
file content (11 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA = docs/sources

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

PB_GO_FILES = $(patsubst %.proto, %.pb.go, $(wildcard api/*.proto))
override_dh_auto_configure:
	protoc -Iapi/ --go_out=plugins=grpc:api/ $(PB_GO_FILES:.pb.go=.proto)
	dh_auto_configure