File: rules

package info (click to toggle)
bitz-server 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,652 kB
  • sloc: cpp: 11,028; python: 189; makefile: 137; sh: 81
file content (44 lines) | stat: -rwxr-xr-x 998 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
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND  = -fPIE
export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie

VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/')

#
# Test for gcc-7 support
#
#export CC=gcc-7
#export CXX=g++-7
#CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
#LDLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
#export CXXFLAGS+= -std=c++98
#export LDFLAGS += -fPIC

#
# end of gcc-7 test
#


%:
	dh $@

override_dh_auto_build-indep:
	dh_auto_build
	make -C doc doxygen-doc

override_dh_installdocs-indep:
	cp -r $(CURDIR)/doc/doxygen/html/* $(CURDIR)/debian/bitz-server-doc/usr/share/doc/bitz-server-doc/docs/
	dh_installdocs

override_dh_makeshlibs:
	dh_makeshlibs
	dpkg-gensymbols -v$(VERSION) -plibicap1

override_dh_installsystemd:
	dh_installsystemd -pbitz-server --no-enable --name=bitz-server bitz-server.service