File: rules

package info (click to toggle)
libpreludedb 4.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,800 kB
  • sloc: ansic: 29,209; cpp: 16,488; sh: 12,812; sql: 1,421; makefile: 280; yacc: 226; lex: 106; python: 90; xml: 40
file content (28 lines) | stat: -rwxr-xr-x 862 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
#! /usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
CONFIGURE_FLAGS = --enable-easy-bindings

ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
	DH_ADDONS += --with python2 --with python3
	CONFIGURE_FLAGS += --with-python3=`py3versions -r 2>/dev/null | sed 's/ /,/g'`
else
	CONFIGURE_FLAGS += --with-python2=no --with-python3=no
endif

ifneq ($(filter libpreludedb-doc,$(shell dh_listpackages)),)
	CONFIGURE_FLAGS += --enable-gtk-doc
endif

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_install:
	dh_auto_install
	find . -name "*.la" -exec rm -f {} \;
	mkdir -p debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libpreludedb/bin
	mv debian/tmp/usr/bin/libpreludedb-config debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libpreludedb/bin/libpreludedb-config

%:
	dh $@ $(DH_ADDONS)