| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_GO_GENERATE := 1 |
| 4 | export DH_GOLANG_EXCLUDES := cmd/discover provider/k8s provider/scaleway provider/softlayer provider/triton provider/vsphere provider/linode provider/azure |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 8 | |
| 9 | override_dh_auto_test: |
| 10 | DH_GOLANG_EXCLUDES="$${DH_GOLANG_EXCLUDES} provider/mdns" \ |
| 11 | dh_auto_test |
| 12 | |
| 13 | override_dh_auto_install: |
| 14 | dh_auto_install --destdir=debian/tmp |