File: rules

package info (click to toggle)
golang-golang-x-tools 1%3A0.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,588 kB
  • sloc: javascript: 2,011; asm: 1,458; sh: 174; yacc: 155; makefile: 21; ansic: 17
file content (42 lines) | stat: -rwxr-xr-x 1,330 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f
# -*- makefile -*-

# Exclude "cover" since it is included in core as of Go 1.5+.
# Some gopls tests take too much time
export DH_GOLANG_EXCLUDES := \
	cmd/cover cmd/getgo/server \
	internal/stack/gostacks \
	internal/lsp/helper gopls/doc \
	gopls/internal/regtest gopls/integration \
	gopls/release gopls/test

# needed for tests.
export DH_GOLANG_INSTALL_EXTRA := godoc/static gopls/go.sum

override_dh_auto_install:
	DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) gopls" dh_auto_install

	# Rename “eg” to “golang-eg” (#753978)
	# Rename “stress” to “golang-stress” (#793693)
	# Rename “bundle” to “golang-bundle” (#818551)
	# Rename “guru” to “golang-guru”
	# Rename “findcall” to “golang-findcall”, etc. (#953725)
	#
	# All go/analysis/*/*/cmd/*
	# All cmd/auth/*
	for i in eg stress bundle guru \
		fieldalignment findcall ifaceassert lostcancel nilness shadow stringintconv unmarshal \
		authtest cookieauth gitauth netrcauth; \
	do \
	    mv debian/tmp/usr/bin/$$i debian/tmp/usr/bin/golang-$$i; \
	done

override_dh_auto_test:
ifeq (,$(findstring gccgo, $(shell go version)))
	# use short tests where possible (especially to skip tests like
	# TestWebIndex which are very slow)
	dh_auto_test -- -short -timeout=30m
endif

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