File: rules

package info (click to toggle)
golang-github-grpc-ecosystem-go-grpc-prometheus 1.2.0%2Bgit20191002.6af20e3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 260 kB
  • sloc: makefile: 31; sh: 11
file content (22 lines) | stat: -rwxr-xr-x 559 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
#!/usr/bin/make -f

# Do not build examples, but install them.
export DH_GOLANG_EXCLUDES := examples/
export DH_GOLANG_EXCLUDES_ALL := 0
export DH_GOPKG := github.com/grpc-ecosystem/go-grpc-prometheus
export DH_VERBOSE=1

BUILDDIR := $(CURDIR)/build_

%:
	dh $@ --buildsystem=golang --with=golang --builddirectory=$(BUILDDIR)

override_dh_auto_configure:
	dh_auto_configure
	# Rebuild protobuf.
	( cd $(BUILDDIR)/src/$(DH_GOPKG)/examples/testproto; \
	    protoc -I. \
	        -I${BUILDDIR}/src \
	        --go_out=plugins=grpc:. \
	        test.proto; \
	)