File: rules

package info (click to toggle)
golang-github-dcso-bloom 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 188 kB
  • sloc: makefile: 36
file content (28 lines) | stat: -rwxr-xr-x 561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export DH_GOPKG := github.com/DCSO/bloom
DATE=$(shell date --date=@$(SOURCE_DATE_EPOCH) '+%d %B %Y')
export DH_GOLANG_INSTALL_EXTRA := testdata

MANPAGES=debian/bloom.1

%.1: %.1.txt
	TZ=UTC LC_ALL=C \
	  txt2man -d "$(DATE)" \
	  -s 1 -r "bloom $(DEB_VERSION_UPSTREAM)" \
	  -t $(shell basename -a -s.1 $@) \
	  $< > $@

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

override_dh_installman: $(MANPAGES)
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(MANPAGES)

override_dh_dwz:
	# pass