File: rules

package info (click to toggle)
docker-compose 2.26.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,124 kB
  • sloc: makefile: 110; sh: 2
file content (21 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f

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

export DH_GOPKG := github.com/docker/compose
LDFLAGS := -X $(DH_GOPKG)/internal.Version=$(DEB_VERSION)

# Exclude this packages from tests, because they are not compatible with
# docker/cli > v26.0
export DH_GOLANG_EXCLUDES := cmd/compose pkg/compose pkg/e2e

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

override_dh_auto_build:
	dh_auto_build --builddirectory=_build --buildsystem=golang -- -ldflags '$(LDFLAGS)'
	# Call the docs generator (it is called main because of the package'snnmae)
	_build/bin/main

# Skip auto install, use dh-exec to install the binary in a specific location
override_dh_auto_install: