File: rules

package info (click to toggle)
goawk 1.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,560 kB
  • sloc: awk: 3,060; yacc: 198; fortran: 189; python: 131; sh: 58; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 710 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
#!/usr/bin/make -f
export DH_GOLANG_INSTALL_EXTRA = docs/csv.md
export DH_GOLANG_EXCLUDES = scripts/

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

override_dh_auto_test:
	# This test assumes that uint32(float64(-1)) == UINT32_MAX, but this behavior
	# is implementation-dependent and fails on armhf.
	dh_auto_test -- -skip 'TestNative/_BEGIN_{__print__print_bool'

execute_after_dh_auto_test:
	# The test binary is placed in the source root after running the tests,
	# but we don't want to include it into the -dev package.
	rm _build/src/github.com/benhoyt/goawk/goawk

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_before_dh_installman:
	scdoc < debian/goawk.scd > debian/tmp/goawk.1
endif