File: rules

package info (click to toggle)
netcdf-cxx-legacy 4.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,680 kB
  • ctags: 629
  • sloc: sh: 10,521; cpp: 3,134; makefile: 106
file content (31 lines) | stat: -rwxr-xr-x 750 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# Enable hardening build flags, except:
#  pie: causes build failure
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie

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

# Verbose test output
export VERBOSE=1

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

override_dh_auto_test:
	dh_auto_test --max-parallel=1 || echo "Ignoring test failures"

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

override_dh_strip:
	dh_strip --dbg-package=libnetcdf-cxx-legacy-dbg

override_dh_makeshlibs:
	dh_makeshlibs -- -c0 -v$(UPSTREAM_VERSION)