ofp-util: Implement translation to and from OpenFlow 1.1 ofp_match.
[openvswitch] / rhel / automake.mk
1 # Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.  This file is offered as-is,
6 # without warranty of any kind.
7
8 EXTRA_DIST += \
9         rhel/README.RHEL \
10         rhel/automake.mk \
11         rhel/etc_init.d_openvswitch \
12         rhel/etc_logrotate.d_openvswitch \
13         rhel/etc_sysconfig_network-scripts_ifdown-ovs \
14         rhel/etc_sysconfig_network-scripts_ifup-ovs \
15         rhel/kmodtool-openvswitch-el5.sh \
16         rhel/openvswitch-kmod-rhel5.spec \
17         rhel/openvswitch-kmod-rhel5.spec.in \
18         rhel/openvswitch-kmod-rhel6.spec \
19         rhel/openvswitch-kmod-rhel6.spec.in \
20         rhel/openvswitch.spec \
21         rhel/openvswitch.spec.in \
22         rhel/usr_share_openvswitch_scripts_sysconfig.template
23
24 update_rhel_spec = \
25   ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
26     < $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \
27   if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
28
29 $(srcdir)/rhel/openvswitch-kmod-rhel5.spec: rhel/openvswitch-kmod-rhel5.spec.in $(top_builddir)/config.status
30         $(update_rhel_spec)
31
32 $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
33         $(update_rhel_spec)
34
35 $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
36         $(update_rhel_spec)