File: rules

package info (click to toggle)
golang-github-awslabs-soci-snapshotter 0.4.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,952 kB
  • sloc: ansic: 459; sh: 237; makefile: 90
file content (22 lines) | stat: -rwxr-xr-x 545 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
#!/usr/bin/make -f

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

export DH_GOLANG_EXCLUDES := benchmark

PKG=github.com/awslabs/soci-snapshotter
VERSION = $(DEB_VERSION_UPSTREAM_REVISION)
REVISION = $(DEB_VERSION)

GO_LDFLAGS = -ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) $(GO_EXTRA_LDFLAGS)'

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


override_dh_auto_build:
	dh_auto_build --builddirectory=_build -- $(GO_LDFLAGS)

override_dh_auto_test:
	dh_auto_test --builddirectory=_build -- $(GO_LDFLAGS)