File: rules

package info (click to toggle)
osm-gps-map 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 692 kB
  • sloc: ansic: 5,390; python: 217; makefile: 211; xml: 45; sh: 33; javascript: 17
file content (41 lines) | stat: -rwxr-xr-x 1,051 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
41
#!/usr/bin/make -f
# -*- makefile -*-

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

export export V=1
export DEB_CFLAGS_MAINT_APPEND = -UGDK_DISABLE_DEPRECATED
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/pkg-info.mk

UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')

%:
	dh $@ --with gir

override_dh_autoreconf:
	NOCONFIGURE=y ./autogen.sh
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --enable-gtk-doc

override_dh_install:
	find debian/tmp -name '*.la' -delete

	# Explicitly remove files not included in any package
	$(RM) debian/tmp/usr/share/doc/osm-gps-map/AUTHORS
	$(RM) debian/tmp/usr/share/doc/osm-gps-map/ChangeLog
	$(RM) debian/tmp/usr/share/doc/osm-gps-map/COPYING
	$(RM) debian/tmp/usr/share/doc/osm-gps-map/NEWS
	$(RM) debian/tmp/usr/share/doc/osm-gps-map/README

	dh_install --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -- -v$(UPSTREAM_VERSION)

override_dh_strip:
	dh_strip --dbgsym-migration='libosmgpsmap-1.0-dbg (<< 1.1.0-3~)'