File: rules

package info (click to toggle)
golang-github-muesli-mango 0.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: makefile: 8
file content (12 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := examples

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

override_dh_installexamples:
	dh_installexamples --sourcedir=$(CURDIR)
	cd debian/golang-github-muesli-mango-dev; find . -type f -exec rm -f usr/bin/example \;
	cd debian/golang-github-muesli-mango-dev; find . -type d -empty -delete
	cd debian/golang-github-muesli-mango-examples; find . -type f -exec rm -f usr/share/doc/golang-github-muesli-mango-examples/examples/example \;