File: rules

package info (click to toggle)
gedit-plugins 3.30.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,212 kB
  • sloc: ansic: 9,420; python: 8,248; sh: 4,834; makefile: 564; xml: 290
file content (32 lines) | stat: -rwxr-xr-x 866 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
#!/usr/bin/make -f

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

export PYTHON = /usr/bin/python3

# With extreme parallel builds, translations go missing
# See https://bugzilla.gnome.org/show_bug.cgi?id=770100
%:
	dh $@ --with gnome,python3 --max-parallel=4

override_dh_autoreconf:
	NOCONFIGURE=true dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-python \
		--enable-vala

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	find debian/tmp -name '*dashboard*' | xargs -r rm -rf
	find debian/tmp -name '__pycache__' | xargs -r rm -rf
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_python3:
	dh_python3 --no-ext-rename /usr/lib/$(DEB_HOST_MULTIARCH)/gedit/plugins
	dh_python3 --no-ext-rename /usr/share/gedit/plugins