File: rules

package info (click to toggle)
hut 0.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,088 kB
  • sloc: makefile: 60; sh: 14
file content (20 lines) | stat: -rwxr-xr-x 675 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

BUILDFLAGS = -ldflags "-X 'main.version=$(DEB_VERSION)'"

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

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_auto_build:
	dh_auto_build -O--buildsystem=golang -- $(BUILDFLAGS)

	# Building documentation and shell completions
	scdoc < doc/hut.1.scd > _build/hut.1
	mkdir _build/completion _build/completion/bash _build/completion/fish _build/completion/zsh
	_build/bin/hut completion bash > _build/completion/bash/hut
	_build/bin/hut completion fish > _build/completion/fish/hut.fish
	_build/bin/hut completion zsh > _build/completion/zsh/_hut