]> git.proxmox.com Git - iproute2.git/blame - debian/rules
Update to 4.15, fix /bin/ss with no header flag
[iproute2.git] / debian / rules
CommitLineData
3cf71090
DM
1#!/usr/bin/make -f
2
3DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
4
5DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
8ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
9 CROSS :=
10else
11 CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
12endif
13
14%:
cd0d3ac3 15 dh $@
3cf71090
DM
16
17override_dh_clean:
18 dh_clean
19 make distclean
20 -rm -f doc/*.txt
21
3cf71090
DM
22override_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
26override_dh_auto_configure:
27 $(CROSS) dh_auto_configure
28
29override_dh_auto_build:
3cf71090 30 $(MAKE) KERNEL_INCLUDE=./include $(CROSS)