| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_GOLANG_EXCLUDES := examples |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 7 |
|
| 8 |
override_dh_installexamples: |
| 9 |
dh_installexamples --sourcedir=$(CURDIR) |
| 10 |
cd debian/golang-github-muesli-mango-dev; find . -type f -exec rm -f usr/bin/example \; |
| 11 |
cd debian/golang-github-muesli-mango-dev; find . -type d -empty -delete |
| 12 |
cd debian/golang-github-muesli-mango-examples; find . -type f -exec rm -f usr/share/doc/golang-github-muesli-mango-examples/examples/example \; |