Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # DH_VERBOSE := 1
4
5 export PYBUILD_NAME = edlib
6
7 export DEB_BUILD_MAINT_OPTIONS=hardening=+all optimize=+lto
8
9 DEB_CMAKE_EXTRA_FLAGS = -DCMAKE_BUILD_TYPE=Release \
10 -DEDLIB_BUILD_EXAMPLES=False \
11 -DBUILD_TESTING=False \
12 -DEDLIB_OMIT_README_RST=1 \
13 -DBUILD_SHARED_LIBS=ON
14 EDLIB_OMIT_README_RST=1
15
16 %:
17 dh $@
18
19 override_dh_auto_configure:
20 dh_auto_configure --buildsystem=cmake -- $(DEB_CMAKE_EXTRA_FLAGS)
21
22 override_dh_auto_build:
23 dh_auto_build --buildsystem=cmake
24 # $(MAKE) --directory=bindings/python
25 EDLIB_OMIT_README_RST=1 $(MAKE) --directory=bindings/python edlib pyedlib.bycython.cpp
26 EDLIB_OMIT_README_RST=1 dh_auto_build --buildsystem=pybuild -- --dir bindings/python
27
28 override_dh_auto_install:
29 dh_auto_install --buildsystem=cmake
30 # $(MAKE) install --directory=bindings/python
31 dh_auto_install --buildsystem=pybuild -- --dir bindings/python
32
33 override_dh_install:
34 dh_install
35 file-rename 's/_static\.a/.a/' `find debian -name libedlib_static.a`
36 d-shlibmove --commit \
37 --multiarch \
38 --devunversioned \
39 --exclude-la \
40 --movedev debian/tmp/usr/include/* usr/include \
41 --movedev debian/tmp/usr/lib/*/cmake usr/lib/$(DEB_HOST_MULTIARCH) \
42 --movedev debian/tmp/usr/lib/*/pkgconfig usr/lib/$(DEB_HOST_MULTIARCH) \
43 debian/tmp/usr/lib/*/*.so
44
45 override_dh_auto_test:
46 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
47 `find . -name edlib-aligner -type f -executable` -p apps/aligner/test_data/query.fasta apps/aligner/test_data/target.fasta
48 `find . -name runTests`
49 endif