File: rules

package info (click to toggle)
pgstat 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 340 kB
  • sloc: ansic: 5,380; makefile: 37; sh: 8
file content (28 lines) | stat: -rwxr-xr-x 662 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
25
26
27
28
#!/usr/bin/make -f

DH_VERBOSE = 1
export DH_OPTIONS=-v 

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

BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
MANDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1

%:
	dh $@

# We want only one binary among 3 in the source
override_dh_auto_build:
	$(MAKE) pgstat

override_dh_auto_install:

override_dh_auto_test:
	PATH=.:$(PATH) debian/tests/pgstat

override_dh_installman:
	mkdir -p $(MANDIR)
	help2man --no-discard-stderr --version-string='$(DEB_VERSION_UPSTREAM)' \
		--name="Gather statistical informations from PostgreSQL the vmstat way" \
	    --no-info --section=1 -o $(MANDIR)/pgstat.1 $(BINDIR)/pgstat
	dh_installman