File: rules

package info (click to toggle)
dh-make-golang 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: makefile: 12; sh: 9
file content (20 lines) | stat: -rwxr-xr-x 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := description.json

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang

execute_after_dh_auto_configure:
	# golang.org/x/tools/go/vcs v0.1.0-deprecated
	ln -s $(CURDIR)/debian/go/src \
	    debian/_build/src/github.com/Debian/dh-make-golang/vendor
	# github.com/google/go-github/github (with Go modules disabled)
	sed -i -e 's#go-github/v[0-9]\+/github#go-github/github#' \
	    debian/_build/src/github.com/Debian/dh-make-golang/main.go

override_dh_auto_install:
	dh_auto_install -- --no-source

execute_before_dh_installman:
	pandoc -f markdown -t man -s dh-make-golang.md -o dh-make-golang.1