File: rules

package info (click to toggle)
golang-glide 0.12.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 704 kB
  • ctags: 546
  • sloc: makefile: 45; sh: 7
file content (13 lines) | stat: -rwxr-xr-x 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

VERSION = $(shell dpkg-parsechangelog --show-field Version)

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

override_dh_auto_build:
	dh_auto_build --buildsystem=golang -- -ldflags "-X main.version=$(VERSION)"

override_dh_auto_test:
	cp -a testdata obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/src/$(shell sed -n "s/^XS-Go-Import-Path: \(.*\)/\1/p" debian/control)/.
	dh_auto_test --buildsystem=golang