File: rules

package info (click to toggle)
libsignon-glib 1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 500 kB
  • ctags: 519
  • sloc: ansic: 3,876; makefile: 272; xml: 79; sh: 33; python: 18
file content (29 lines) | stat: -rwxr-xr-x 719 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
#!/usr/bin/make -f
DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-Wall -pendantic
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

BUILD:=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
	dh $@ --with autoreconf,gir

override_dh_autoreconf:
	gtkdocize
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_install:
	rm debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libsignon-glib.la
	dh_install --list-missing

override_dh_strip:
	dh_strip --dbg-package=libsignon-glib-dbg

override_dh_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean