| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_EXCLUDES := terminal-test |
| 4 | export DH_GOLANG_GO_GENERATE := 1 |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=debian/_build --buildsystem=golang |
| 8 | |
| 9 | # We cannot use DH_GOLANG_EXCLUDES to prevent building of the `gen` binary |
| 10 | # because we need the corresponding source code to be available when running |
| 11 | # autopkgtests. So, manually remove the bin/ directory before performing |
| 12 | # the install steps. |
| 13 | execute_before_dh_auto_install: |
| 14 | rm -rf ./debian/_build/bin/ |