debian: Package ovsdbmonitor.
[sliver-openvswitch.git] / debian / automake.mk
1 EXTRA_DIST += \
2         debian/changelog \
3         debian/compat \
4         debian/control \
5         debian/control.modules.in \
6         debian/copyright \
7         debian/copyright.in \
8         debian/dirs \
9         debian/openvswitch-common.dirs \
10         debian/openvswitch-common.install \
11         debian/openvswitch-common.manpages \
12         debian/openvswitch-controller.README.Debian \
13         debian/openvswitch-controller.default \
14         debian/openvswitch-controller.dirs \
15         debian/openvswitch-controller.init \
16         debian/openvswitch-controller.install \
17         debian/openvswitch-controller.manpages \
18         debian/openvswitch-controller.postinst \
19         debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in \
20         debian/openvswitch-datapath-source.README.Debian \
21         debian/openvswitch-datapath-source.copyright \
22         debian/openvswitch-datapath-source.dirs \
23         debian/openvswitch-datapath-source.install \
24         debian/openvswitch-ipsec.dirs \
25         debian/openvswitch-ipsec.init \
26         debian/openvswitch-ipsec.install \
27         debian/openvswitch-pki.postinst \
28         debian/openvswitch-switch.README.Debian \
29         debian/openvswitch-switch.dirs \
30         debian/openvswitch-switch.init \
31         debian/openvswitch-switch.install \
32         debian/openvswitch-switch.logrotate \
33         debian/openvswitch-switch.manpages \
34         debian/openvswitch-switch.postinst \
35         debian/openvswitch-switch.postrm \
36         debian/openvswitch-switch.template \
37         debian/ovsdbmonitor.install \
38         debian/ovsdbmonitor.manpages \
39         debian/ovs-bugtool \
40         debian/ovs-bugtool.8 \
41         debian/ovs-monitor-ipsec \
42         debian/python-openvswitch.dirs \
43         debian/python-openvswitch.install \
44         debian/rules \
45         debian/rules.modules
46
47 check-debian-changelog-version:
48         @DEB_VERSION=`echo '$(VERSION)' | sed 's/pre/~pre/'`;                \
49         if $(FGREP) '($(DEB_VERSION)' $(srcdir)/debian/changelog >/dev/null; \
50         then                                                                 \
51           :;                                                                 \
52         else                                                                 \
53           echo "Update debian/changelog to mention version $(VERSION)";      \
54           exit 1;                                                            \
55         fi
56 ALL_LOCAL += check-debian-changelog-version
57 DIST_HOOKS += check-debian-changelog-version
58
59 $(srcdir)/debian/copyright: AUTHORS debian/copyright.in
60         { sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in;   \
61           sed '1,/^$$/d' $(srcdir)/AUTHORS |                               \
62                 sed -n -e '/^$$/q' -e 's/^/  /p';                          \
63           sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;           \
64         } > $@
65
66 DISTCLEANFILES += debian/copyright