File: rules

package info (click to toggle)
golang-honnef-go-tools 2024.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,968 kB
  • sloc: sh: 132; xml: 48; lisp: 31; makefile: 11; javascript: 1
file content (18 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Don't use "cmd", as it will match "lintcmd".
export DH_GOLANG_EXCLUDES := website internal/cmd internal/gosmith \
	cmd/unused \
	cmd/keyify cmd/structlayout cmd/structlayout-optimize cmd/structlayout-pretty

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

ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
override_dh_auto_test:
	# run out of memory: cannot allocate 4194304-byte block (3459678208 in use)
	-dh_auto_test
endif

execute_after_dh_auto_build:
	mv _build/bin/staticcheck _build/bin/go-staticcheck