| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all |
| 6 |
|
| 7 |
export DH_GOLANG_EXCLUDES := example internal/cmd/extract internal/cmd/genop _test$$ |
| 8 |
export DH_GOLANG_INSTALL_EXTRA := _test/p3 $(wildcard stdlib/generic/*.txt) |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
dh_auto_build -- -ldflags="-X main.version=$(DEB_VERSION_UPSTREAM)" |
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
# The default timeout for tests is 10m, which is not enough for |
| 18 |
# slower or overloaded machines. Let's increase it to one hour. |
| 19 |
dh_auto_test -- -timeout 1h |
| 20 |
$(RM) -r _build/src/github.com/traefik/yaegi/_test/tmp |