File: rules

package info (click to toggle)
ibus-libzhuyin 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 69,016 kB
  • sloc: cpp: 8,307; sh: 4,272; makefile: 253; python: 248; xml: 131
file content (30 lines) | stat: -rwxr-xr-x 751 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
#!/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 =

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 -- \
	        --with-python=/usr/bin/python3 \
	        --enable-opencc

execute_after_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