File: rules

package info (click to toggle)
glab 1.53.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,936 kB
  • sloc: sh: 295; makefile: 153; perl: 99; ruby: 68; javascript: 67
file content (22 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

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

override_dh_auto_build:
	dh_auto_build -- -ldflags "-X main.version=v$(DEB_VERSION_UPSTREAM) -X main.build=$(SOURCE_DATE_EPOCH) -X main.usageMode=prod"
	mkdir -p _build/completions/ _build/manpages/
	_build/bin/gen-docs --manpage --path _build/manpages/
	GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s bash > _build/completions/glab
	GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s fish > _build/completions/glab.fish
	GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s zsh > _build/completions/_glab

override_dh_auto_test:

override_dh_auto_install:
	rm -f _build/bin/gen-docs
	dh_auto_install -- --no-source