File: rules

package info (click to toggle)
pyosmium 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,532 kB
  • sloc: python: 4,198; cpp: 2,482; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 673 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_CXXFLAGS_MAINT_APPEND=$(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CPPFLAGS)

export PYBUILD_NAME=pyosmium
export PYBUILD_SYSTEM=distutils
export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {dir}/tools {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples {build_dir}/tools
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/lib/{package}


export VERBOSE=1

%:
	dh $@ --buildsystem pybuild

execute_after_dh_auto_build:
	(cd docs && PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) make man)