| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DH_GOLANG_INSTALL_EXTRA := \ |
| 6 |
.bingo/Variables.mk \ |
| 7 |
Makefile \ |
| 8 |
builtin/help/cmd.tmpl \ |
| 9 |
|
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 13 |
|
| 14 |
execute_before_dh_auto_install: |
| 15 |
rm -fv _build/src/github.com/bwplotka/bingo/.bin/bingo |
| 16 |
rm -rfv _build/src/github.com/bwplotka/bingo/.bingo |
| 17 |
rm -rfv _build/src/github.com/bwplotka/bingo/testdata/testproject_with_bingo_*/ |
| 18 |
rm -fv _build/src/github.com/bwplotka/bingo/pkg/bingo/test*.mod |
| 19 |
|
| 20 |
|
| 21 |
SKIP='TestCompatibilityCurrentVersionCreate|TestGet_ModuleCases|TestGetList|TestCompatibility' |
| 22 |
override_dh_auto_test: |
| 23 |
dh_auto_test -- -skip=$(SKIP) |
| 24 |
-dh_auto_test -- -run=$(SKIP) |
| 25 |
|
| 26 |
B = $(CURDIR)/debian/tmp/usr/bin |
| 27 |
M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 28 |
|
| 29 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 30 |
execute_before_dh_installman-arch: |
| 31 |
mkdir -pv $(M) |
| 32 |
env PATH=$(PATH):$(B) \ |
| 33 |
help2man --version-string="$(DEB_VERSION)" \ |
| 34 |
--no-info \ |
| 35 |
--name="Like 'go get' but for Go tools" \ |
| 36 |
--output $(M)/bingo.1 \ |
| 37 |
bingo |
| 38 |
endif |