File: rules

package info (click to toggle)
golang-github-fhs-go-netrc 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 76 kB
  • sloc: makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 653 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
#!/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/fhs/go-netrc

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

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

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