File: rules

package info (click to toggle)
libatasmart 0.17%2Bgit20100219-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,756 kB
  • ctags: 584
  • sloc: sh: 10,242; ansic: 5,352; makefile: 78; python: 24
file content (18 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

LDFLAGS += -Wl,--as-needed

install/libatasmart-dev::
	dh_link -p$(cdbs_curpkg) lib/$$(basename $$(readlink debian/tmp/usr/lib/libatasmart.so)) usr/lib/libatasmart.so

binary-install/libatasmart4::
	# when building for Ubuntu, install Apport hook
	if [ "`lsb_release -is 2>/dev/null`" = "Ubuntu" ]; then \
	    install -m 644 -D debian/local/apport-hook.py debian/$(cdbs_curpkg)/usr/share/apport/package-hooks/$(cdbs_curpkg).py; \
	fi