File: rules

package info (click to toggle)
manif 0.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,576 kB
  • sloc: cpp: 11,789; ansic: 8,774; python: 2,158; sh: 24; makefile: 23; xml: 21
file content (32 lines) | stat: -rwxr-xr-x 918 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

BUILD_TESTING = $(if $(or $(filter 32,$(DEB_HOST_ARCH_BITS)),$(filter nocheck,$(DEB_BUILD_OPTIONS))),OFF,ON)

ifeq ($(DEB_HOST_ARCH_BITS),32)
export PYBUILD_TEST_ARGS = || true
endif

export CMAKE_BUILD_EXTENSION_DEBIAN = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export SETUPTOOLS_SCM_PRETEND_VERSION = $(DEB_VERSION_UPSTREAM)
export PYBUILD_AFTER_INSTALL = rm -r {destdir}{install_dir}/manifpy/include {destdir}{install_dir}/manifpy/share

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=pybuild
	dh_auto_configure --buildsystem=cmake -- \
		-DBUILD_PYTHON_BINDINGS=OFF \
		-DBUILD_TESTING=$(BUILD_TESTING)

override_dh_auto_clean \
override_dh_auto_build \
override_dh_auto_install \
override_dh_auto_test: override_%:
	$* --buildsystem=pybuild
	$* --buildsystem=cmake -O--no-parallel