Debian Codegraph @

distro/pkg/deb/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9 DPKG_EXPORT_BUILDFLAGS = 1
10 include /usr/share/dpkg/default.mk
11
12 COMMON_FLAGS= --prefix=/usr --sysconfdir=/etc/bird --mandir=\$${prefix}/share/man \
13 --infodir=\$${prefix}/share/info --localstatedir=/var --runstatedir=/run/bird \
14 --docdir=\$${prefix}/share/bird3 \
15 --enable-client
16
17 CFLAGS += -g -O2 -fno-strict-aliasing -fno-strict-overflow -fPIC
18 LDFLAGS += -g -O2 -fno-strict-aliasing -fno-strict-overflow -fPIC -Wl,-z,defs -Wl,--as-needed
19
20 %:
21 dh $@
22
23 override_dh_auto_configure:
24 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -- $(COMMON_FLAGS) --with-protocols=all
25
26 override_dh_auto_build-indep:
27 dh_auto_build -- docs
28
29 override_dh_auto_install:
30 dh_auto_install --destdir=debian/tmp
31
32 override_dh_installinit:
33 dh_installinit --name=bird --restart-after-upgrade
34
35 override_dh_installsystemd:
36 dh_installsystemd --name=bird --restart-after-upgrade
37
38 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
39 XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
40
41 bird.8: debian/bird.xml
42 $(XP) $(DB2MAN) $<
43
44 override_dh_installman: bird.8
45 dh_installman
46
47 override_dh_clean:
48 dh_clean
49 -rm -f bird.8 birdc.8 birdcl.8
50
51 override_dh_missing:
52 dh_missing
53
54 override_dh_compress:
55 dh_compress -X.conf