File: rules

package info (click to toggle)
libtirpc 0.2.5-1.2+deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,252 kB
  • sloc: ansic: 17,678; sh: 11,079; makefile: 94
file content (19 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	. ./autogen.sh
	AUTOHEADER=true dh_autoreconf

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_install:
	# Move libtirpc.so.* to /lib
	mkdir -p debian/tmp/lib/$(DEB_HOST_MULTIARCH)
	mv debian/tmp/usr/lib/*/libtirpc.so.* debian/tmp/lib/$(DEB_HOST_MULTIARCH)

	# Fix up the -dev symlink
	LINKTARGET=`readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so`; \
	ln -sf /lib/$(DEB_HOST_MULTIARCH)/$$LINKTARGET debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtirpc.so

	dh_install