File: rules

package info (click to toggle)
ibus-libzhuyin 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 54,004 kB
  • sloc: cpp: 8,305; sh: 4,272; makefile: 252; python: 248; xml: 131
file content (29 lines) | stat: -rwxr-xr-x 768 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_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export V=1

# To ensure ./configure does not run twice.
export NOCONFIGURE=yes

%:
	dh $@ --with python3

override_dh_autoreconf:
	dh_autoreconf $(CURDIR)/autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --libexecdir=/usr/lib/ibus --with-python=/usr/bin/python3

override_dh_auto_install:
	dh_auto_install
	rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/ChangeLog
	rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/COPYING
	rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/INSTALL
	rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/NEWS