File: rules

package info (click to toggle)
golang-github-codeclysm-extract 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Completely exclude testdata files from the binary package as they are
# otherwise stripped by some debhelper plugin. This stripping step messes
# up zip files' inner metadat, which in turn make the tests fail in
# autopkgtest.
# Configure them manually instead.
export DH_GOLANG_EXCLUDES := testdata
export DH_GOLANG_EXCLUDES_ALL := 1

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

override_dh_auto_install:
	dh_auto_install -- --no-binaries

execute_after_dh_auto_configure:
	cp -r testdata _build/src/github.com/codeclysm/extract/testdata