File: rules

package info (click to toggle)
golang-github-alecaivazis-survey 2.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 652 kB
  • sloc: makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 575 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

export DH_GOLANG_EXCLUDES := examples tests

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

# Prevent FTBFS and autopkgtest failure; see https://bugs.debian.org/997547
override_dh_auto_test:
	count=1; \
	  until GOMAXPROCS=1 timeout 30s dh_auto_test; do \
	    count=$$((count + 1)); \
	  done; \
	  echo -n "Tests succeeded in $$count "; \
	  test "$$count" -eq 1 && echo "try" || echo "tries"

execute_after_dh_fixperms:
	chmod a-x debian/golang-github-alecaivazis-survey-dev/usr/share/gocode/src/github.com/AlecAivazis/survey/renderer_test.go