File: rules

package info (click to toggle)
libtirpc 1.1.4-0.4
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,428 kB
  • sloc: ansic: 19,806; sh: 4,209; makefile: 120
file content (19 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download | duplicates (4)
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