File: rules

package info (click to toggle)
prometheus-bird-exporter 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 364 kB
  • sloc: makefile: 67
file content (24 lines) | stat: -rwxr-xr-x 592 bytes parent folder | download | duplicates (2)
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

BINNAME := $(DEB_SOURCE)
BUILDDIR := $(CURDIR)/build

%:
	dh $@ --buildsystem=golang --with=golang --builddirectory=$(BUILDDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -f prometheus-bird-exporter.1

override_dh_auto_build:
	dh_auto_build
	# Rename the binary to match the debian package.
	mv -v $(BUILDDIR)/bin/bird_exporter $(BUILDDIR)/bin/$(BINNAME)
	pandoc -s -t man bird_exporter.1.md -o prometheus-bird-exporter.1

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_installinit:
	dh_installinit --noscripts