File: rules

package info (click to toggle)
libatasmart 0.19-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,036 kB
  • ctags: 1,030
  • sloc: sh: 11,295; ansic: 5,645; makefile: 88; python: 25
file content (24 lines) | stat: -rwxr-xr-x 743 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

override_dh_link:
	dh_link -plibatasmart-dev lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so)) usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so
	dh_link --remaining-packages

override_dh_install:
	dh_install

	# library should go into /lib for usage in udisks etc.
	set -e; cd debian/libatasmart?; mv usr/lib .; rmdir usr

	# when building for Ubuntu, install Apport hook
	if dpkg-vendor --is ubuntu; then \
	    install -m 644 -D debian/local/apport-hook.py debian/libatasmart4/usr/share/apport/package-hooks/libatasmart4.py; \
	fi

override_dh_installdocs:
	dh_installdocs --all README