File: rules

package info (click to toggle)
amgcl 1.4.4-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 5,676 kB
  • sloc: cpp: 34,043; python: 747; pascal: 258; f90: 196; makefile: 20
file content (25 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DAMGCL_BUILD_TESTS=ON \
		-DAMGCL_BUILD_EXAMPLES=ON \
		-DAMGCL_DISABLE_RARE_COMPONENTS=OFF \
		-DAMGCL_HAVE_PYTHON=ON \
		-DAMGCL_HAVE_FORTRAN=ON

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	mkdir -p debian/tmp/usr/lib/python3/dist-packages/pyamgcl
	cp obj-*/pyamgcl/pyamgcl_ext.cpython-*.so debian/tmp/usr/lib/python3/dist-packages/pyamgcl
	cp pyamgcl/__init__.py                    debian/tmp/usr/lib/python3/dist-packages/pyamgcl

override_dh_installdocs:
	dh_installdocs -X.git\*