File: rules

package info (click to toggle)
prometheus-bird-exporter 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: makefile: 12
file content (24 lines) | stat: -rwxr-xr-x 584 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
23
24
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

# Uncomment this to enable verbose mode.
#export DH_VERBOSE := 1

BINNAME := $(DEB_SOURCE)

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

execute_before_dh_auto_build:
	# Copy vendored packages
	cp -a debian/vendor _build/src/$(PKG)/

execute_after_dh_auto_build:
	# Rename the binary to match the debian package.
	mv -v _build/bin/bird_exporter _build/bin/$(BINNAME)

execute_before_dh_installman:
	pandoc -s -t man bird_exporter.1.md -o _build/$(BINNAME).1

override_dh_auto_install:
	dh_auto_install -- --no-source