File: rules

package info (click to toggle)
libcapi20-3 1%3A3.27-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,552 kB
  • sloc: sh: 10,527; ansic: 4,612; makefile: 62
file content (27 lines) | stat: -rwxr-xr-x 695 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
20
21
22
23
24
25
26
27
#!/usr/bin/make -f
DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	AUTOPOINT="intltoolize --automake --copy" dh_autoreconf

override_dh_install:
	set -e
	for FILE in debian/*.install.in; \
	do \
		sed -e "s/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g" $$FILE > debian/`basename $$FILE .in`; \
	done
	dh_install

override_dh_installexamples:
	dh_installexamples -X.in

override_dh_link:
	# replace the directory with a link to libcapi20-3 docs later
	rm -Rf debian/libcapi20-dev/usr/share/doc/libcapi20-dev
	dh_link

override_dh_shlibdeps:
	dh_shlibdeps -L libcapi20-3 -l debian/libcapi20-3/usr/lib/$(DEB_HOST_MULTIARCH)