Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 %:
5 dh $@ $(DH_ADDONS)
6 build binary %-indep: DH_ADDONS=--with=python3
7
8 DOPACKAGES := $(shell dh_listpackages)
9 ifeq ($(filter python3-louis,$(DOPACKAGES)),)
10 PY3VERS :=
11 else
12 PY3VERS := $(shell py3versions -r)
13 endif
14
15 ASSUME_NEW = \
16 --assume-new=lou_allround.1 \
17 --assume-new=lou_checkhyphens.1 \
18 --assume-new=lou_checktable.1 \
19 --assume-new=lou_debug.1 \
20 --assume-new=lou_translate.1 \
21 --assume-new=lou_trace.1 \
22 --assume-new=lou_checkyaml.1 \
23 --assume-new=lou_tableinfo.1
24
25 override_dh_auto_configure-arch:
26 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
27 dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure --reload-all-buildenv-variables -- --enable-ucs4
28 dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build
29 dh_auto_clean
30 endif
31 dh_auto_configure -- --enable-ucs4
32 override_dh_auto_configure-indep: override_dh_auto_configure-arch
33 pybuild --configure
34
35 override_dh_auto_build-arch:
36 dh_auto_build -- $(ASSUME_NEW)
37 override_dh_auto_build-indep: override_dh_auto_build-arch
38 pybuild -d python --build
39
40 override_dh_auto_clean-arch:
41 dh_auto_clean
42 rm -fr doc/liblouis.info doc/stamp-vti doc/version.texi .pybuild
43 override_dh_auto_clean-indep: override_dh_auto_clean-arch
44 -pybuild -d python --clean
45
46 override_dh_auto_test-arch:
47 dh_auto_test
48 override_dh_auto_test-indep:
49 cd python ; \
50 for py in $(PY3VERS); do \
51 LOUIS_TABLEPATH=$(CURDIR)/tables LD_LIBRARY_PATH=$(CURDIR)/liblouis/.libs$${LD_LIBRARY_PATH+:$$LD_LIBRARY_PATH} $$py -m pytest tests/ ; \
52 done
53
54 override_dh_auto_install-arch:
55 dh_auto_install -- $(ASSUME_NEW)
56 rm -fr $(CURDIR)/debian/tmp/usr/bin/lou_maketable*
57 override_dh_auto_install-indep: override_dh_auto_install-arch
58 pybuild -d python --install