File: rules

package info (click to toggle)
golang-github-census-instrumentation-opencensus-proto 0.2.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 824 kB
  • sloc: sh: 165; python: 37; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

export DH_GOLANG_GO_GENERATE := 1

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

override_dh_auto_build:
	export GOPATH=$(CURDIR)/_build && cd src && ./mkgogen.sh    ## generate .pb.go and .pb.gw.go
	dh_auto_build

override_dh_clean:
	dh_clean
	-find . -type f -name '*.pb.go' -delete -printf 'removed %p\n'    ## delete generated .pb.go files
	-find . -type f -name '*.pb.gw.go' -delete -printf 'removed %p\n'    ## delete generated .pb.gw.go files