File: rules

package info (click to toggle)
libedlib 1.2.7-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,520 kB
  • sloc: cpp: 2,002; sh: 304; python: 131; makefile: 89; ansic: 7
file content (49 lines) | stat: -rwxr-xr-x 1,623 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_NAME = edlib

export DEB_BUILD_MAINT_OPTIONS=hardening=+all optimize=+lto

DEB_CMAKE_EXTRA_FLAGS = -DCMAKE_BUILD_TYPE=Release \
                        -DEDLIB_BUILD_EXAMPLES=False \
                        -DBUILD_TESTING=False \
                        -DEDLIB_OMIT_README_RST=1 \
                        -DBUILD_SHARED_LIBS=ON
EDLIB_OMIT_README_RST=1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- $(DEB_CMAKE_EXTRA_FLAGS)

override_dh_auto_build:
	dh_auto_build --buildsystem=cmake
	# $(MAKE) --directory=bindings/python
	EDLIB_OMIT_README_RST=1 $(MAKE) --directory=bindings/python edlib pyedlib.bycython.cpp
	EDLIB_OMIT_README_RST=1 dh_auto_build --buildsystem=pybuild -- --dir bindings/python

override_dh_auto_install:
	dh_auto_install --buildsystem=cmake
#	$(MAKE) install --directory=bindings/python
	dh_auto_install --buildsystem=pybuild -- --dir bindings/python

override_dh_install:
	dh_install
	file-rename 's/_static\.a/.a/' `find debian -name libedlib_static.a`
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
		    --movedev debian/tmp/usr/include/* usr/include \
		    --movedev debian/tmp/usr/lib/*/cmake usr/lib/$(DEB_HOST_MULTIARCH) \
		    --movedev debian/tmp/usr/lib/*/pkgconfig usr/lib/$(DEB_HOST_MULTIARCH) \
		    debian/tmp/usr/lib/*/*.so

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	`find . -name edlib-aligner -type f -executable` -p apps/aligner/test_data/query.fasta apps/aligner/test_data/target.fasta
	`find . -name runTests`
endif