File: rules

package info (click to toggle)
certstream-server-go 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 252 kB
  • sloc: makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

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

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

B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/certstream-server-go/usr/share/man/man1

execute_after_dh_auto_install:
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
	mkdir -pv $(M)
	env PATH=$(PATH):$(B) \
		help2man --no-info --version-string="$(DEB_VERSION)" \
		--no-discard-stderr -Idebian/certstream-server-go.h2m \
		certstream-server-go -o $(M)/certstream-server-go.1
endif