]> git.proxmox.com Git - ovs.git/blob - rhel/automake.mk
tests: Fix MSVC compiler error on test-ovn.c
[ovs.git] / rhel / automake.mk
1 # Copyright (C) 2009, 2010, 2011, 2012, 2014 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.rst \
10 rhel/automake.mk \
11 rhel/etc_init.d_openvswitch \
12 rhel/etc_logrotate.d_openvswitch \
13 rhel/etc_openvswitch_default.conf \
14 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
15 rhel/etc_sysconfig_network-scripts_ifup-ovs \
16 rhel/openvswitch-dkms.spec \
17 rhel/openvswitch-dkms.spec.in \
18 rhel/openvswitch-kmod-rhel6.spec \
19 rhel/openvswitch-kmod-rhel6.spec.in \
20 rhel/openvswitch-kmod.files \
21 rhel/openvswitch-kmod-fedora.spec \
22 rhel/openvswitch-kmod-fedora.spec.in \
23 rhel/openvswitch.spec \
24 rhel/openvswitch.spec.in \
25 rhel/openvswitch-fedora.spec \
26 rhel/openvswitch-fedora.spec.in \
27 rhel/usr_share_openvswitch_scripts_sysconfig.template \
28 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
29 rhel/usr_lib_udev_rules.d_91-vfio.rules \
30 rhel/usr_lib_systemd_system_openvswitch.service \
31 rhel/usr_lib_systemd_system_ovsdb-server.service \
32 rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
33 rhel/usr_lib_systemd_system_ovn-controller.service \
34 rhel/usr_lib_systemd_system_ovn-controller-vtep.service \
35 rhel/usr_lib_systemd_system_ovn-northd.service \
36 rhel/usr_lib_firewalld_services_ovn-central-firewall-service.xml \
37 rhel/usr_lib_firewalld_services_ovn-host-firewall-service.xml
38
39 DISTCLEANFILES += rhel/usr_lib_systemd_system_ovs-vswitchd.service
40
41 update_rhel_spec = \
42 $(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
43 < $(srcdir)/rhel/$(@F).in > $(@F).tmp || exit 1; \
44 if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
45
46 $(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status
47 $(update_rhel_spec)
48
49 $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
50 $(update_rhel_spec)
51
52 $(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status
53 $(update_rhel_spec)
54
55 $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status
56 $(update_rhel_spec)
57
58 $(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_builddir)/config.status
59 $(update_rhel_spec)
60
61 RPMBUILD_TOP := $(abs_top_builddir)/rpm/rpmbuild
62 RPMBUILD_OPT ?= --without check
63
64 # Build user-space RPMs
65 rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec
66 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
67 cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
68 rpmbuild ${RPMBUILD_OPT} \
69 -D "_topdir ${RPMBUILD_TOP}" \
70 -ba $(srcdir)/rhel/openvswitch-fedora.spec
71
72 # Build kernel datapath RPM
73 rpm-fedora-kmod: dist $(srcdir)/rhel/openvswitch-kmod-fedora.spec
74 ${MKDIR_P} ${RPMBUILD_TOP}/SOURCES
75 cp ${DIST_ARCHIVES} ${RPMBUILD_TOP}/SOURCES
76 rpmbuild -D "kversion $(shell uname -r)" ${RPMBUILD_OPT} \
77 -D "_topdir ${RPMBUILD_TOP}" \
78 -ba $(srcdir)/rhel/openvswitch-kmod-fedora.spec