Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 BUILDDIR := $(shell perl -w -MDebian::Debhelper::Buildsystem::golang -e \
6 'print Debian::Debhelper::Buildsystem::golang->new()->get_builddir()')
7 DH_GOPKG := github.com/kr/binarydist
8
9 %:
10 dh $@ --buildsystem=golang --with=golang
11
12 override_dh_auto_configure:
13 dh_auto_configure -O--buildsystem=golang
14 # Include test fixtures.
15 cp -av testdata $(BUILDDIR)/src/$(DH_GOPKG)/
16
17 gen-orig-source:
18 git archive --prefix=$(DEB_SOURCE)-$(DEB_VERSION)/ \
19 upstream/$(subst ~,_,$(DEB_VERSION)) \
20 -o ../$(DEB_SOURCE)_$(DEB_VERSION).orig.tar.xz