File: rules

package info (click to toggle)
pgstat 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 180 kB
  • sloc: ansic: 2,832; makefile: 32
file content (25 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
18
19
20
21
22
23
24
25
#!/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_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