| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DH_GOLANG_INSTALL_EXTRA := \ |
| 6 |
internal/cmd/docgen/templates \ |
| 7 |
internal/data \ |
| 8 |
tests/thirdparty/suite.json |
| 9 |
|
| 10 |
export DH_GOLANG_EXCLUDES := \ |
| 11 |
examples \ |
| 12 |
internal/cmd |
| 13 |
|
| 14 |
ifeq ($(filter $(DEB_HOST_ARCH), amd64),) |
| 15 |
export DH_GOLANG_EXCLUDES += tests |
| 16 |
endif |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ --buildsystem=golang --builddirectory=_build |
| 20 |
|
| 21 |
execute_after_dh_auto_configure: |
| 22 |
|
| 23 |
find _build/src/github.com/mmcloughlin/avo/ -name testdata -type l -delete -print |
| 24 |
cp -avT ./internal/data _build/src/github.com/mmcloughlin/avo/internal/load/testdata |
| 25 |
cp -avT ./internal/data _build/src/github.com/mmcloughlin/avo/internal/opcodescsv/testdata |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
build: |
| 31 |
dh build --buildsystem=golang --builddirectory=_build |
| 32 |
|
| 33 |
.PHONY: build |