File: rules

package info (click to toggle)
gitbatch 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 504 kB
  • sloc: makefile: 10; sh: 1
file content (18 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Disable cgo to avoid lintian warn: 'hardening-no-fortify-functions'
export CGO_ENABLED := 0

# Disable tests, because they try to access network and write to $HOME
override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_auto_build:
	dh_auto_build -- \
		-buildmode=pie \
		-ldflags="-extldflags -Wl,-z,now"

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