Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 # for DEB_* variables
6 include /usr/share/dpkg/default.mk
7 include /usr/share/debhelper/dh_package_notes/package-notes.mk
8
9 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
10 export CC=$(DEB_HOST_GNU_TYPE)-gcc
11 export HOSTCC=gcc
12 export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
13 else
14 # some tools are to be built with the host compiler and intentionally
15 # ignore the *FLAGS, use them anyway in a non-cross build to make
16 # dpkg-buildflags-missing happy
17 export CBUILD_CFLAGS=$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
18 endif
19
20 ifneq (,$(findstring terse,$(DEB_BUILD_OPTIONS)))
21 export VERBOSE=0
22 else
23 export VERBOSE=1
24 endif
25
26 export KERNEL_INCLUDE=./include
27 export NETNS_RUN_DIR=/run/netns
28
29 %:
30 dh $@
31
32 execute_after_dh_clean:
33 make distclean
34
35 override_dh_auto_configure:
36 dh_auto_configure -- --color=auto
37
38 override_dh_auto_test:
39 # upstream test suite needs root and leaves machine unclean, skip it
40
41 # We are not shipping the ifstat binary as it conflicts with another Debian
42 # package, so avoid shipping the manpage as well. See #873818
43 override_dh_install:
44 dh_install -Xifstat.8
45
46 override_dh_auto_install:
47 dh_auto_install --destdir $(CURDIR)/debian/tmp/