File: rules

package info (click to toggle)
freediameter 1.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,028 kB
  • sloc: ansic: 63,390; yacc: 2,767; lex: 1,732; xml: 795; php: 486; makefile: 463; sql: 337; sh: 237; perl: 75; cpp: 6
file content (49 lines) | stat: -rwxr-xr-x 1,309 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

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

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

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")

arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH)

override_dh_strip:
	dh_strip
	strip --remove-section=.comment debian/freediameter-extensions/usr/lib/freeDiameter/*

override_dh_installchangelogs:
	dh_installchangelogs contrib/debian/changelog

override_dh_installman:
	cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	$(RM) debian/man/*.1

# Skip unreliable tests:
override_dh_auto_test:
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
#	echo ${arch}
#	if [ "${arch}" = "s390x" ] ; then \
#	   echo "Do not care of test result on this architecture. There seems to be some serious problems with the test suite in general, but it only causes FTBFS on s390x" ;\
#	else \
#	   echo "Do run tests on this architecture" ;\
#	   dh_auto_test ;\
#	fi
#endif