| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 7 |
|
| 8 |
execute_before_dh_auto_install: |
| 9 |
mkdir -v -p $(CURDIR)/debian/completion |
| 10 |
_build/bin/gum completion bash > $(CURDIR)/debian/completion/gum.bash |
| 11 |
_build/bin/gum completion fish > $(CURDIR)/debian/completion/gum.fish |
| 12 |
_build/bin/gum completion zsh > $(CURDIR)/debian/completion/gum.zsh |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install -- --no-source |
| 16 |
|
| 17 |
execute_before_dh_installman: |
| 18 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 19 |
help2man debian/gum/usr/bin/gum \ |
| 20 |
--no-info --no-discard-stderr \ |
| 21 |
--version-string="$(DEB_VERSION_UPSTREAM)" \ |
| 22 |
-n "Tool for glamorous shell scripts" > debian/gum.1 |
| 23 |
endif |