File: rules

package info (click to toggle)
pythonmagick 0.9.19-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,744 kB
  • sloc: sh: 4,363; cpp: 2,849; perl: 279; python: 175; makefile: 124
file content (23 lines) | stat: -rwxr-xr-x 687 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
#!/usr/bin/make -f

export VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

d=--buildsystem=autoconf --builddirectory="{build_dir}"
export PYBUILD_NAME=pythonmagick
export PYBUILD_SYSTEM=custom
export PYBUILD_CLEAN_ARGS=dh_auto_clean $d;
export PYBUILD_CONFIGURE_ARGS=dh_auto_configure $d -- \
	--disable-silent-rules --disable-static \
	--with-python-min-version={version.major}.{version.minor}
export PYBUILD_BUILD_ARGS=dh_auto_build $d
export PYBUILD_INSTALL_ARGS=dh_auto_install $d --destdir="{destdir}"
export PYBUILD_TEST_ARGS=dh_auto_test $d

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

override_dh_auto_install:
	dh_auto_install
	find debian/ -name "*.la" -delete