File: rules

package info (click to toggle)
libpeas 1.22.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,788 kB
  • sloc: ansic: 14,494; sh: 11,443; makefile: 1,078; python: 187; xml: 44
file content (35 lines) | stat: -rwxr-xr-x 853 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --with gnome,gir

override_dh_autoreconf:
	NOCONFIGURE=yes dh_autoreconf gnome-autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-gtk-doc \
		--enable-python2 \
		--enable-python3

override_dh_makeshlibs:
	dh_makeshlibs -p libpeas-1.0-0 \
		-X/usr/lib/$(DEB_HOST_MULTIARCH)/libpeas-1.0/ -- -c4
	dh_makeshlibs --remaining-packages

override_dh_install:
	# remove compiled python and libtool .la files
	find debian/tmp \( \
		-name '*.la' -o -name '*.pyc' -o -name '*.pyo' \
		\) -print -delete
	rm -rf debian/tmp/usr/lib/*/peas-demo/plugins/*/__pycache__
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
	HOME=$(CURDIR) xvfb-run -a dh_auto_test