File: rules

package info (click to toggle)
libpipeline 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,544 kB
  • ctags: 2,137
  • sloc: ansic: 21,195; sh: 12,507; makefile: 170
file content (30 lines) | stat: -rwxr-xr-x 804 bytes parent folder | download | duplicates (2)
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
28
29
30
#! /usr/bin/make -f
%:
	dh $@ --builddirectory=debian/build --with=autoreconf --parallel

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_BUILD_MAINT_OPTIONS := hardening=+bindnow,+pie

export V := 1

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_test:
	# libcheck.a isn't built with -fPIC, so we have trouble on amd64 if
	# we link with -fPIC etc. here.
	VERBOSE=1 dh_auto_test -- LDFLAGS=

override_dh_auto_install:
	dh_auto_install
	rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libpipeline.la

override_dh_installdocs:
	dh_installdocs --link-doc=libpipeline1

VERSION_MINOR = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | \
			cut -d. -f1,2).0

override_dh_makeshlibs:
	dh_makeshlibs -V'libpipeline1 (>= $(VERSION_MINOR))' -- -c4