File: rules

package info (click to toggle)
golang-github-containerd-cgroups 0.0~git20201119.4cbc285-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 776 kB
  • sloc: makefile: 17
file content (14 lines) | stat: -rwxr-xr-x 593 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := cmd/cgctl

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

execute_after_dh_auto_configure:
	cd _build/src && protoc -I.:/usr/share/gocode/src/github.com/gogo/protobuf/:/usr/include \
		--gogo_out=import_path=github.com/containerd/cgroups/stats/v1:. \
		github.com/containerd/cgroups/stats/v1/metrics.proto
	cd _build/src && protoc -I.:/usr/share/gocode/src/github.com/gogo/protobuf/:/usr/include \
		--gogo_out=import_path=github.com/containerd/cgroups/v2/stats:. \
		github.com/containerd/cgroups/v2/stats/metrics.proto