File: rules

package info (click to toggle)
golang-github-mmcloughlin-avo 0.0~git20200523.4439b6b-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,304 kB
  • sloc: xml: 71,029; asm: 13,138; sh: 179; makefile: 35
file content (41 lines) | stat: -rwxr-xr-x 1,028 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
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := \
	internal/data/x86.v0.2.csv \
	internal/data/x86_64.xml \
	internal/opcodesxml/testdata/x86_64.xml \
	tests/thirdparty/packages.json

include /usr/share/dpkg/pkg-info.mk

ifeq ($(filter $(DEB_TARGET_ARCH), amd64),)
export DH_GOLANG_EXCLUDES := \
	examples \
	tests/alloc/upper32 \
	tests/alloc/gp8 \
	tests/alloc/masks \
	tests/cast \
	tests/fixedbugs/issue50 \
	tests/fixedbugs/issue65 \
	tests/fixedbugs/issue68 \
	tests/fixedbugs/issue76 \
	tests/fixedbugs/issue89 \
	tests/fixedbugs/issue100/allocfail \
	tests/fixedbugs/issue100/minrepro \
	tests/fixedbugs/issue122 \
	tests/fmt \
	tests/labels \
	tests/textflag
endif

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

ifeq ($(filter nocheck, $(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
	cd obj-$(DEB_HOST_GNU_TYPE)/src/github.com/mmcloughlin/avo/internal/opcodescsv; \
		ln -s ../data testdata
	cd obj-$(DEB_HOST_GNU_TYPE)/src/github.com/mmcloughlin/avo/internal/load; \
		ln -s ../data testdata
	dh_auto_test
endif