File: rules

package info (click to toggle)
pinpoint 1%3A0.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,052 kB
  • ctags: 344
  • sloc: ansic: 3,678; makefile: 42; sh: 24
file content (26 lines) | stat: -rwxr-xr-x 792 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
#!/usr/bin/make -f

DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

%:
	dh $@ --with autoreconf

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/pinpoint/usr/share/man/man1
	pod2man -c "" -r "" debian/pinpoint.pod > debian/pinpoint/usr/share/man/man1/pinpoint.1

override_dh_compress:
	dh_compress -X.pin

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog

version = $(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | sed -e 's/-.*//; s/[0-9]\+://')
orig_tarball = $(CURDIR)/../pinpoint_$(version).orig.tar.gz
get-orig-source:
	pristine-tar checkout $(orig_tarball) || \
		(git archive --prefix=pinpoint-$(version)/ upstream | gzip - > $(orig_tarball)) && \
		pristine-tar commit $(orig_tarball)