| 1 |
#!/usr/bin/make -f |
| 2 |
#DH_VERBOSE = 1 |
| 3 |
|
| 4 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 5 |
include /usr/share/dpkg/default.mk |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
export DEB_LDFLAGS_MAINT_APPEND = |
| 9 |
|
| 10 |
export V=1 |
| 11 |
|
| 12 |
# https://github.com/libzhuyin/ibus-libzhuyin/issues/88 |
| 13 |
export DEB_CXXFLAGS_MAINT_APPEND = -std=c++17 |
| 14 |
|
| 15 |
# To ensure ./configure does not run twice. |
| 16 |
export NOCONFIGURE=yes |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ |
| 20 |
|
| 21 |
execute_before_dh_autoreconf: |
| 22 |
./autogen.sh |
| 23 |
|
| 24 |
override_dh_auto_configure: |
| 25 |
dh_auto_configure -- \ |
| 26 |
--with-python=/usr/bin/python3 \ |
| 27 |
--enable-opencc |
| 28 |
|
| 29 |
execute_after_dh_auto_install: |
| 30 |
rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/ChangeLog |
| 31 |
rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/COPYING |
| 32 |
rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/INSTALL |
| 33 |
rm -f $(CURDIR)/debian/*/usr/share/doc/ibus-libzhuyin/NEWS |