File: rules

package info (click to toggle)
gobgp 3.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates
  • size: 5,624 kB
  • sloc: python: 11,443; sh: 3,653; makefile: 85; cpp: 70
file content (14 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

# Don't build an example binary
export DH_GOLANG_EXCLUDES := github.com/osrg/gobgp/tools/config
export DH_GOLANG_INSTALL_EXTRA = docs/sources

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

PB_GO_FILES = $(patsubst %.proto, %.pb.go, $(wildcard api/*.proto))

execute_before_dh_auto_configure:
	protoc -Iapi/ --go_out=api --go_opt=paths=source_relative \
		--go-grpc_out=api --go-grpc_opt=paths=source_relative $(PB_GO_FILES:.pb.go=.proto)