File: rules

package info (click to toggle)
golang-github-lucasb-eyer-go-colorful 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, forky, sid, trixie
  • size: 2,460 kB
  • sloc: makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := doc
export DH_GOLANG_INSTALL_EXTRA := hsluv-snapshot-rev4.json

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

override_dh_auto_test:
	# The default timeout for tests is 10m, which is not enough for
	# slower or overloaded machines. Let's increase it to one hour.
	dh_auto_test -- -timeout 1h

override_dh_auto_install:
	dh_auto_install

	# Workaround for #904261:
	for pkg in $(DH_GOLANG_EXCLUDES); do \
	    rm -rfv debian/*/usr/share/gocode/src/github.com/lucasb-eyer/go-colorful/$$pkg;\
	    done