File: rules

package info (click to toggle)
otf 1.12.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,340 kB
  • sloc: ansic: 31,683; cpp: 13,899; sh: 11,110; python: 1,239; makefile: 425
file content (35 lines) | stat: -rwxr-xr-x 1,123 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
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

VERSION:=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | sed -e 's/+dfsg.*//')

HELP2MAN=help2man -N --version-string=$(VERSION)

%:
	dh $@  --with autotools-dev,autoreconf

override_dh_auto_install:
	dh_auto_install
	ln -s libopen-trace-format.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libotf.so
	ln -s libopen-trace-format.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libotf.a
	(cd debian/tmp/usr/include ; ln -s open-trace-format/* .)

override_dh_install:
	dh_install
	rm -f debian/otf-trace/usr/bin/otfconfig

override_dh_installman:
	for i in otfaux otfcompress otfconfig otfinfo otfmerge otfprofile otfshrink ; do \
		$(HELP2MAN) -n $$i ./tools/$$i/$$i > debian/$$i.1 ; \
	done
	$(HELP2MAN) -n otfprint ./tools/otfdump/otfprint > debian/otfprint.1
	ln -sf otfprofile.1 debian/otfprofile-mpi.1
	ln -sf otfmerge.1 debian/otfmerge-mpi.1
	ln -sf otfcompress.1 debian/otfdecompress.1
	dh_installman
	rm -f debian/otf-trace/usr/share/man/man1/otfconfig.1*

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/*.1