File: rules

package info (click to toggle)
golang-github-grpc-ecosystem-go-grpc-prometheus 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 260 kB
  • sloc: makefile: 31; sh: 11
file content (23 lines) | stat: -rwxr-xr-x 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_ALL := 1

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

SRC = obj-$(DEB_BUILD_GNU_TYPE)/src/github.com/grpc-ecosystem/go-grpc-prometheus

# Rebuild proto files
override_dh_auto_build:
	cd $(SRC)/examples/testproto && \
		GOPATH=obj-$(DEB_BUILD_GNU_TYPE) make 
	dh_auto_build

# We need DH_GOLANG_INSTALL_ALL to pick up proto files, but it brings in
# a bunch of misc junk as well.
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	rm -f debian/tmp/usr/share/gocode/src/github.com/grpc-ecosystem/go-grpc-prometheus/.gitignore
	rm debian/tmp/usr/share/gocode/src/github.com/grpc-ecosystem/go-grpc-prometheus/.travis.yml
	rm debian/tmp/usr/share/gocode/src/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE
	rm debian/tmp/usr/share/gocode/src/github.com/grpc-ecosystem/go-grpc-prometheus/README.md