bump version to 4.10.0-1
[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 $@ --with=quilt
16
17 override_dh_clean:
18         dh_clean
19         make distclean
20         -rm -f doc/*.txt
21
22 override_dh_installexamples:
23         dh_installexamples -p iproute2-doc examples/*
24
25 override_dh_shlibdeps:
26         dh_shlibdeps -a -Xq_atm.so -Xm_xt.so -Xm_ipt.so
27         dh_shlibdeps -a -- -pipmods -dRecommends -e debian/iproute2/usr/lib/tc/m_xt.so -e debian/iproute2/usr/lib/tc/q_atm.so -xlibc6
28
29 override_dh_auto_configure:
30         $(CROSS) dh_auto_configure
31
32 override_dh_auto_build:
33 #       $(MAKE) -C doc all txt
34         $(MAKE) -C doc all
35         $(MAKE) KERNEL_INCLUDE=./include $(CROSS)
36
37 # bump version of the transitional packages...
38 override_dh_gencontrol:
39         dh_gencontrol -piproute -- -v1:$(DEB_VERSION)
40         dh_gencontrol -piproute-doc -- -v1:$(DEB_VERSION)
41         dh_gencontrol --remaining-packages