File: rules

package info (click to toggle)
libgeotiff-dfsg 1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,656 kB
  • ctags: 922
  • sloc: sh: 11,166; ansic: 8,187; makefile: 123
file content (40 lines) | stat: -rwxr-xr-x 946 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

GEOTIFF_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')

%:
	dh $@ --with autoreconf --parallel

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_clean:
	dh_clean libgeotiff.* xtiffio.h newgeo.tif

override_dh_install:
	$(RM) debian/*/usr/lib/*/libgeotiff.la
	dh_install --list-missing

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_makeshlibs:
	# Forces failure ignoring to collect new symbols
	dh_makeshlibs -- -v$(GEOTIFF_VERSION)

override_dh_strip:
	dh_strip --dbg-package=libgeotiff2-dbg

get-orig-source:
	uscan --verbose --force-download --rename --repack --compression xz