Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export DH_GOPKG := github.com/docker/compose
6 LDFLAGS := -X $(DH_GOPKG)/internal.Version=$(DEB_VERSION)
7
8 # Exclude this packages from tests, because they are not compatible with
9 # docker/cli > v26.0
10 export DH_GOLANG_EXCLUDES := cmd/compose pkg/compose pkg/e2e
11
12 %:
13 dh $@ --builddirectory=_build --buildsystem=golang
14
15 override_dh_auto_build:
16 dh_auto_build --builddirectory=_build --buildsystem=golang -- -ldflags '$(LDFLAGS)'
17 # Call the docs generator (it is called main because of the package'snnmae)
18 _build/bin/main
19
20 # Skip auto install, use dh-exec to install the binary in a specific location
21 override_dh_auto_install: