Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE=1
5 export DH_OPTIONS
6 export LC_ALL=C.UTF-8
7
8 export "DEB_BUILD_MAINT_OPTIONS=hardening=+all optimize=+lto reproducible=+fixfilepath"
9 DPKG_EXPORT_BUILDFLAGS = 1
10 include /usr/share/dpkg/buildflags.mk
11
12 %:
13 dh $@ --with python3
14
15 override_dh_auto_configure:
16 dh_auto_configure -- --enable-yasmet --enable-irstlm --enable-python-bindings 'PYTHON_INSTALL_PARAMS=--no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp'
17
18 override_dh_auto_install:
19 dh_auto_install
20 find $(CURDIR) -type f -name '*.pyc' -exec rm -f '{}' \;
21 find $(CURDIR) -type f -name '*.pyo' -exec rm -f '{}' \;
22 find $(CURDIR) -type f -name '*.la' -exec rm -f '{}' \;
23 find $(CURDIR) -type f -name '*.a' -exec rm -f '{}' \;