File: rules

package info (click to toggle)
golang-github-google-go-github 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,956 kB
  • sloc: makefile: 7
file content (14 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

# We want to ship only the library packages themselves, not the accompanying
# example and test binaries.
export DH_GOLANG_EXCLUDES := example/ test/

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

# Remove the example and test sources from the gocode directory
override_dh_auto_install:
	dh_auto_install --buildsystem=golang
	rm -rf $(CURDIR)/debian/golang-github-google-go-github-dev/usr/share/gocode/src/github.com/google/go-github/example
	rm -rf $(CURDIR)/debian/golang-github-google-go-github-dev/usr/share/gocode/src/github.com/google/go-github/test