File: rules

package info (click to toggle)
age 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 752 kB
  • sloc: makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk

NO_PIE_ARCHS := mips64el mipsel riscv64

BUILDFLAGS  = $(if $(filter $(DEB_HOST_ARCH),$(NO_PIE_ARCHS)),,-buildmode=pie) \
		-ldflags "-X main.Version=$(DEB_VERSION_UPSTREAM)"

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

override_dh_auto_build:
	dh_auto_build -- $(BUILDFLAGS)