File: rules

package info (click to toggle)
golang-testify 1.1.3%2Bgit20160418.12.c5d7a69%2Bds-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 388 kB
  • sloc: makefile: 13
file content (17 lines) | stat: -rwxr-xr-x 660 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
export DH_OPTIONS
export DH_GOPKG := github.com/stretchr/testify

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

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')
GITTAG     ?= upstream/$(shell echo '$(VERSION)' | sed -e 's/~/_/g')

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