]> git.proxmox.com Git - iproute2.git/blob - debian/rules
2f1a1ffe7770db6a449a616497aaaeca10751e22
[iproute2.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
4
5 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
8 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
9 CROSS :=
10 else
11 CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
12 endif
13
14 %:
15 dh $@
16
17 override_dh_clean:
18 dh_clean
19 make distclean
20 -rm -f doc/*.txt
21
22 override_dh_shlibdeps:
23 dh_shlibdeps -a -Xq_atm.so -Xm_xt.so -Xm_ipt.so
24 dh_shlibdeps -a -- -pipmods -dRecommends -e debian/iproute2/usr/lib/tc/m_xt.so -e debian/iproute2/usr/lib/tc/q_atm.so -xlibc6
25
26 override_dh_auto_configure:
27 $(CROSS) dh_auto_configure
28
29 override_dh_auto_build:
30 $(MAKE) -C doc all txt
31 $(MAKE) KERNEL_INCLUDE=./include $(CROSS)