File: rules

package info (click to toggle)
gammu 1.42.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,236 kB
  • sloc: ansic: 107,382; pascal: 7,209; cpp: 3,976; php: 1,622; python: 1,559; sh: 1,208; sql: 601; perl: 240; makefile: 162; asm: 31; cs: 4
file content (40 lines) | stat: -rwxr-xr-x 983 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
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

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

export DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
include /usr/share/dpkg/buildflags.mk

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

override_dh_auto_build:
	dh_auto_build --parallel
ifneq (,$(filter gammu-doc,$(shell dh_listpackages)))
	dh_auto_build -- manual-html
endif

override_dh_auto_test:
	dh_auto_test --no-parallel

override_dh_compress:
	dh_compress -X.js -Xobjects.inv -X.txt -X.py

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_auto_configure:
	dh_auto_configure -- \
		-DINSTALL_LIBDATA_DIR=/usr/lib/${DEB_HOST_MULTIARCH} \
		-DSYSTEMD_SERVICES_INSTALL_DIR=/lib/systemd/system \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
		-DINSTALL_LSB_INIT=ON \
		-DSYSTEMD_FOUND=ON \
		-DWITH_SYSTEMD=ON

override_dh_installsystemd:
	dh_installinit --no-scripts
	dh_installsystemd