File: rules

package info (click to toggle)
biosig 2.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 12,504 kB
  • sloc: ansic: 42,918; cpp: 11,987; sh: 4,378; objc: 2,283; makefile: 1,247; python: 88; awk: 73; php: 40; perl: 36; java: 14; ruby: 7
file content (46 lines) | stat: -rwxr-xr-x 1,187 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

MAKEOPTS=LIBEXT=so

export PYBUILD_NAME=biosig
export PYBUILD_DIR=biosig4c++/python/

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh  $@ --with python3,numpy3,octave

override_dh_auto_build:
	dh_auto_build -- $(MAKEOPTS) lib tools octave
	pybuild --build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "I: skip testing for now -- relies on download of test data"
endif

override_dh_auto_install:
	dh_auto_install
	pybuild --install

override_dh_install:
	dh_install
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
		    --override s/libcholmod3-dev/libsuitesparse-dev/ \
		    --override s/libtinyxml2.6.2-dev/libtinyxml-dev/ \
		    --movedev debian/tmp/usr/include usr \
		    --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
		    debian/tmp/usr/lib/*/*.so

# No idea whether octave needs the extra LICENSE file - if so it can be deleted here
#override_dh_installdocs:
#	dh_installdocs
#	find debian -name LICENSE -delete

override_dh_auto_clean:
	if [ -f $(PYBUILD_DIR)/setup.py ] ; then pybuild --clean ; fi
	dh_auto_clean