File: rules

package info (click to toggle)
netopeer2 2.0.35-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 2,468 kB
  • sloc: ansic: 25,871; sh: 407; xml: 162; makefile: 28
file content (34 lines) | stat: -rwxr-xr-x 965 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# Hardening
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# needed for CMake that ignores CPPFLAGS
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

# be strict when comparing symbols in netopeer2-1
export DPKG_GENSYMBOLS_CHECK_LEVEL=4

# use the executable from the system
SYSREPOCFG_EXECUTABLE=/usr/bin/sysrepoctl

%:
	dh $@ --buildsystem=cmake --builddir=build

override_dh_auto_configure:
	dh_auto_configure --builddir=build -- -DBUILD_CLI=ON -DBUILD_TESTS=ON -DINSTALL_MODULES=OFF -DGENERATE_HOSTKEY=OFF -DMERGE_LISTEN_CONFIG=OFF -DPIDFILE_PREFIX=/run -DSERVER_DIR=/var/lib/netopeer2

override_dh_auto_install:
	dh_auto_install --builddir=build --destdir=$(CURDIR)/debian/tmp

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
	dh_auto_test --builddir=build || ( make -C build test_clean; exit 1; )
	make -C build test_clean