Debian: Update change log for 1.1.0~pre2.g2.ea763e0e-1 upload
[sliver-openvswitch.git] / debian / rules.modules
1 #! /usr/bin/make -f
2
3 PACKAGE=openvswitch-datapath-module
4 MA_DIR ?= /usr/share/modass
5 -include $(MA_DIR)/include/generic.make
6 -include $(MA_DIR)/include/common-rules.make
7
8 DATAPATH_CONFIGURE_OPTS =
9
10 # Official build number.  Leave set to 0 if not an official build.
11 BUILD_NUMBER = 0
12
13 kdist_clean:
14         dh_testdir      
15         dh_testroot
16         dh_clean
17         rm -rf openvswitch
18
19 .PHONY: kdist_config
20 kdist_config: prep-deb-files
21
22 .PHONY: binary-modules
23 binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
24 binary-modules: prep-deb-files
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         tar xzf openvswitch.tar.gz
29         cd openvswitch && ./configure --with-l26=$(KSRC) $(DATAPATH_CONFIGURE_OPTS) --with-build-number=$(BUILD_NUMBER)
30         cd openvswitch && $(MAKE) -C datapath/linux-2.6
31         install -d -m755 $(DSTDIR)
32         install -m644 openvswitch/datapath/linux-2.6/*_mod.ko $(DSTDIR)/
33         dh_installmodules
34         dh_installdocs
35         dh_installchangelogs
36         dh_compress
37         dh_fixperms
38         dh_installdeb
39         dh_gencontrol
40         dh_md5sums
41         dh_builddeb --destdir=$(DEB_DESTDIR)
42