File: rules

package info (click to toggle)
golang-github-eknkc-amber 0.0~git20171010.cdade1c-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 244 kB
  • sloc: makefile: 8
file content (12 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/make -f

builddir := $(CURDIR)/obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DH_GOPKG := $(shell grep ^XS-Go-Import-Path: debian/control | cut -d' ' -f2)

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

override_dh_auto_test:
	cp -a samples $(builddir)/src/$(DH_GOPKG)/
	dh_auto_test -O--buildsystem=golang
	rm -rf $(builddir)/src/$(DH_GOPKG)/samples