File: rules

package info (click to toggle)
gum 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 668 kB
  • sloc: sh: 232; ruby: 24; makefile: 17; javascript: 9; python: 4
file content (23 lines) | stat: -rwxr-xr-x 714 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

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

execute_before_dh_auto_install:
	mkdir -v -p $(CURDIR)/debian/completion
	_build/bin/gum completion bash > $(CURDIR)/debian/completion/gum.bash
	_build/bin/gum completion fish > $(CURDIR)/debian/completion/gum.fish
	_build/bin/gum completion zsh > $(CURDIR)/debian/completion/gum.zsh

override_dh_auto_install:
	dh_auto_install -- --no-source

execute_before_dh_installman:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	help2man debian/gum/usr/bin/gum \
		--no-info --no-discard-stderr \
		--version-string="$(DEB_VERSION_UPSTREAM)" \
		-n "Tool for glamorous shell scripts" > debian/gum.1
endif