File: rules

package info (click to toggle)
prometheus-sql-exporter 0.2.0.ds-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 492 kB
  • sloc: makefile: 47; sh: 31
file content (17 lines) | stat: -rwxr-xr-x 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

override_dh_auto_install:
	mv obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/bin/sql_exporter \
	obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/bin/prometheus-sql-exporter
	dh_auto_install -- --no-source

override_dh_installman:
	PATH=$(PATH):obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/bin \
	help2man --no-discard-stderr --no-info \
		--name "SQL Exporter for Prometheus" \
		--version-string=$(shell dpkg-parsechangelog -S Version) \
		prometheus-sql-exporter > prometheus-sql-exporter.1
	dh_installman