b6cb12e97c6cdacd28964328ce20441703c8514d
[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/dkms.conf.in \
9         debian/dirs \
10         debian/openvswitch-brcompat.install \
11         debian/openvswitch-brcompat.manpages \
12         debian/openvswitch-brcompat.postinst \
13         debian/openvswitch-brcompat.postrm \
14         debian/openvswitch-common.dirs \
15         debian/openvswitch-common.docs \
16         debian/openvswitch-common.install \
17         debian/openvswitch-common.manpages \
18         debian/openvswitch-controller.README.Debian \
19         debian/openvswitch-controller.default \
20         debian/openvswitch-controller.dirs \
21         debian/openvswitch-controller.init \
22         debian/openvswitch-controller.install \
23         debian/openvswitch-controller.manpages \
24         debian/openvswitch-controller.postinst \
25         debian/openvswitch-controller.postrm \
26         debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in \
27         debian/openvswitch-datapath-dkms.postinst \
28         debian/openvswitch-datapath-dkms.prerm \
29         debian/openvswitch-datapath-source.README.Debian \
30         debian/openvswitch-datapath-source.copyright \
31         debian/openvswitch-datapath-source.dirs \
32         debian/openvswitch-datapath-source.install \
33         debian/openvswitch-ipsec.dirs \
34         debian/openvswitch-ipsec.init \
35         debian/openvswitch-ipsec.install \
36         debian/openvswitch-pki.dirs \
37         debian/openvswitch-pki.postinst \
38         debian/openvswitch-pki.postrm \
39         debian/openvswitch-switch.README.Debian \
40         debian/openvswitch-switch.dirs \
41         debian/openvswitch-switch.init \
42         debian/openvswitch-switch.install \
43         debian/openvswitch-switch.logrotate \
44         debian/openvswitch-switch.manpages \
45         debian/openvswitch-switch.postinst \
46         debian/openvswitch-switch.postrm \
47         debian/openvswitch-switch.template \
48         debian/openvswitch-switch.links \
49         debian/openvswitch-test.dirs \
50         debian/openvswitch-test.install \
51         debian/openvswitch-test.manpages \
52         debian/ovsdbmonitor.install \
53         debian/ovsdbmonitor.manpages \
54         debian/ovs-monitor-ipsec \
55         debian/python-openvswitch.dirs \
56         debian/python-openvswitch.install \
57         debian/rules \
58         debian/rules.modules \
59         debian/ifupdown.sh \
60         debian/source/format
61
62 check-debian-changelog-version:
63         @DEB_VERSION=`echo '$(VERSION)' | sed 's/pre/~pre/'`;                \
64         if $(FGREP) '($(DEB_VERSION)' $(srcdir)/debian/changelog >/dev/null; \
65         then                                                                 \
66           :;                                                                 \
67         else                                                                 \
68           echo "Update debian/changelog to mention version $(VERSION)";      \
69           exit 1;                                                            \
70         fi
71 ALL_LOCAL += check-debian-changelog-version
72 DIST_HOOKS += check-debian-changelog-version
73
74 $(srcdir)/debian/copyright: AUTHORS debian/copyright.in
75         { sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in;   \
76           sed '1,/^$$/d' $(srcdir)/AUTHORS |                               \
77                 sed -n -e '/^$$/q' -e 's/^/  /p';                          \
78           sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;           \
79         } > $@
80
81 DISTCLEANFILES += debian/copyright