learning-switch: Delay sending handshake until version negotiation is done.
[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 kdist_clean:
11         dh_testdir      
12         dh_testroot
13         dh_clean
14         rm -rf openvswitch
15
16 .PHONY: kdist_config
17 kdist_config: prep-deb-files
18
19 .PHONY: binary-modules
20 binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
21 binary-modules: prep-deb-files
22         dh_testdir
23         dh_testroot
24         dh_clean -k
25         tar xzf openvswitch.tar.gz
26         cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS)
27         cd openvswitch && $(MAKE) -C datapath/linux
28         install -d -m755 $(DSTDIR)
29         install -m644 openvswitch/datapath/linux/*.ko $(DSTDIR)/
30         dh_installmodules
31         dh_installdocs
32         dh_installchangelogs
33         dh_compress
34         dh_fixperms
35         dh_installdeb
36         dh_gencontrol
37         dh_md5sums
38         dh_builddeb --destdir=$(DEB_DESTDIR)
39