File: rules

package info (click to toggle)
golang-github-containerd-cgroups 3.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 732 kB
  • sloc: makefile: 26
file content (19 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := cmd/cgctl
export DH_VERBOSE := 1

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

execute_after_dh_auto_configure:
	cd _build/src && protoc -I.:/usr/include \
		--go_out=. --go_opt=paths=source_relative \
		github.com/containerd/cgroups/cgroup1/stats/metrics.proto
	cd _build/src && protoc -I.:/usr/include \
        --go_out=. --go_opt=paths=source_relative \
		github.com/containerd/cgroups/cgroup2/stats/metrics.proto
	find _build/src/github.com/containerd/cgroups -ls
	go-fix-acronym -w -a '(Cpu|Tcp|Rss|Psi)' \
		_build/src/github.com/containerd/cgroups/cgroup1/stats/metrics.pb.go \
		_build/src/github.com/containerd/cgroups/cgroup2/stats/metrics.pb.go