File: rules

package info (click to toggle)
docker-buildx 0.13.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,356 kB
  • sloc: sh: 299; makefile: 87
file content (26 lines) | stat: -rwxr-xr-x 879 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
24
25
26
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DH_GOPKG := github.com/docker/buildx
LDFLAGS := -X $(DH_GOPKG)/version.Version=$(DEB_VERSION_UPSTREAM)
LDFLAGS += -X $(DH_GOPKG)/version.Revision=$(DEB_VERSION)
LDFLAGS += -X $(DH_GOPKG)/version.Package=$(DH_GOPKG)

export DH_GOLANG_INSTALL_EXTRA := driver/kubernetes/context/fixtures

# The integration tests depend on a "registry" binary, unavailable in Debian
export SKIP_INTEGRATION_TESTS=1

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

override_dh_auto_build:
	dh_auto_build --builddirectory=_build --buildsystem=golang -- -ldflags '$(LDFLAGS)'
	# Generate the manual pages
	_build/bin/docs --formats=man --source=docs/reference

# Install binaries manually, using the install file, as the executable need to
# be in a specific directory.
override_dh_auto_install:
	dh_auto_install -- --no-binaries