File: rules

package info (click to toggle)
golang-gogoprotobuf 1.2.1+git20190611.dadb6258-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 19,428 kB
  • sloc: makefile: 572; sh: 44
file content (23 lines) | stat: -rwxr-xr-x 636 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_VERBOSE=1
export DH_GOLANG_EXCLUDES =
export DH_GOLANG_GO_GENERATE := 1

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

# Need to exclude packages without .go files.
override_dh_auto_build: DH_GOLANG_EXCLUDES += test/jsonpb-gogo
override_dh_auto_build:
	dh_auto_build

override_dh_auto_test:
ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
## Ignore test failures:
##    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824717
##    https://github.com/gogo/protobuf/issues/164
	-PATH="$(CURDIR)/_build/bin:$$PATH" dh_auto_test
else
	PATH="$(CURDIR)/_build/bin:$$PATH" dh_auto_test
endif