File: rules

package info (click to toggle)
golang-github-containers-image 5.36.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,156 kB
  • sloc: sh: 267; makefile: 99
file content (20 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# disable LTO, cf. https://wiki.debian.org/ToolChain/LTO
export DEB_BUILD_MAINT_OPTIONS := optimize=-lto
export DH_GOLANG_INSTALL_EXTRA := $(shell find . -type d -name 'fixtures') $(wildcard docs/*.json)

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

override_dh_strip_nondeterminism:
	# this file comes from the testsuite, not a source of non-determinism
	dh_strip_nondeterminism -XHello.gz

override_dh_auto_install:
	dh_auto_install --buildsystem=golang
	make install-docs DESTDIR=$(CURDIR)/debian/golang-github-containers-image

override_dh_auto_test:
	DH_GOLANG_EXCLUDES="pkg/docker" \
	dh_auto_test -O--buildsystem=golang