Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
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 # dh-golang doesn't play well with symlinks
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 # autopktest-pkg-go integration runs "debian/rules build", which is a no-op due
28 # to a script "build" present in the upstream source. This (PHONY) target
29 # overrides this.
30 build:
31 dh build --buildsystem=golang --builddirectory=_build
32
33 .PHONY: build