File: rules

package info (click to toggle)
golang-github-kolo-xmlrpc 0%2Bgit20150413.0826b98-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 112 kB
  • ctags: 78
  • sloc: ruby: 18; makefile: 13; xml: 5
file content (21 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DH_VERBOSE := 1
# Include test fixtures.
export DH_GOLANG_INSTALL_EXTRA := fixtures

DEBVERS    ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION    ?= $(shell echo '$(DEBVERS)' | sed 's/^[[:digit:]]*://; s/[-].*//')
DEBPKGNAME ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Source: //p')

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

override_dh_auto_test:
	# Tests are buggy, don't run them.

gen-orig-tgz:
	if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ] ; then \
            git archive --format=tar.gz --prefix=$(DEBPKGNAME)-$(VERSION)/ \
            upstream/$(VERSION) >../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ; \
	fi