File: rules

package info (click to toggle)
golang-github-cheekybits-genny 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 336 kB
  • sloc: makefile: 17; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 609 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

override_dh_auto_install:
	cd obj-$(DEB_TARGET_GNU_TYPE); \
	help2man -N -n "code-generation generics solution for golang" \
		--version-string="$(DEB_VERSION)" --no-discard-stderr \
		-o genny.1 bin/genny
	dh_auto_install

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

ifeq ($(filter nocheck, $(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
ifneq ($(filter $(DEB_TARGET_ARCH), alpha powerpc ppc64 x32),)
# Ignore failure on some systems
# Reported to upstream: https://github.com/cheekybits/genny/issues/68
	-dh_auto_test
else
	dh_auto_test
endif
endif