| 1 |
|
| 2 |
include /usr/share/dpkg/pkg-info.mk |
| 3 |
|
| 4 |
export DH_GOLANG_INSTALL_EXTRA := assets templates README.md |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 8 |
|
| 9 |
execute_before_dh_auto_configure: |
| 10 |
sed s/{{.version}}/v$(DEB_VERSION)/ version/number.go.tmpl > version/number.go |
| 11 |
|
| 12 |
execute_before_dh_installman: |
| 13 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 14 |
help2man --include=debian/lintian-ssg.1.include --no-info \ |
| 15 |
_build/bin/lintian-ssg -o _build/lintian-ssg.1 |
| 16 |
endif |
| 17 |
|
| 18 |
override_dh_auto_install: |
| 19 |
dh_auto_install -- --no-source |