File: rules

package info (click to toggle)
golang-github-kr-binarydist 0.0~git20120828.0.9955b0a-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 156 kB
  • ctags: 61
  • sloc: makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

BUILDDIR := $(shell perl -w -MDebian::Debhelper::Buildsystem::golang -e \
        'print Debian::Debhelper::Buildsystem::golang->new()->get_builddir()')
DH_GOPKG := github.com/kr/binarydist

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

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=golang
	# Include test fixtures.
	cp -av testdata $(BUILDDIR)/src/$(DH_GOPKG)/

gen-orig-source:
	git archive --prefix=$(DEB_SOURCE)-$(DEB_VERSION)/     \
		upstream/$(subst ~,_,$(DEB_VERSION))           \
		-o ../$(DEB_SOURCE)_$(DEB_VERSION).orig.tar.xz