1 sbin_PROGRAMS += vswitchd/ovs-vswitchd
2 man_MANS += vswitchd/ovs-vswitchd.8
4 vswitchd/ovs-vswitchd.8
6 vswitchd_ovs_vswitchd_SOURCES = \
9 vswitchd/ovs-vswitchd.c \
10 vswitchd/system-stats.c \
11 vswitchd/system-stats.h \
12 vswitchd/xenserver.c \
14 vswitchd_ovs_vswitchd_LDADD = \
15 ofproto/libofproto.la \
18 EXTRA_DIST += vswitchd/INTERNALS
19 MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
21 # vswitch schema and IDL
22 EXTRA_DIST += vswitchd/vswitch.ovsschema
23 pkgdata_DATA += vswitchd/vswitch.ovsschema
27 # If "python" or "dot" is not available, then we do not add graphical diagram
28 # to the documentation.
31 vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
32 $(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
33 vswitchd/vswitch.pic: vswitchd/vswitch.gv ovsdb/dot2pic
34 (dot -T plain < vswitchd/vswitch.gv | $(srcdir)/ovsdb/dot2pic -f 3) > $@;
35 VSWITCH_PIC = vswitchd/vswitch.pic
36 VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
37 DISTCLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
41 # vswitch schema documentation
42 EXTRA_DIST += vswitchd/vswitch.xml
43 DISTCLEANFILES += vswitchd/ovs-vswitchd.conf.db.5
44 man_MANS += vswitchd/ovs-vswitchd.conf.db.5
45 vswitchd/ovs-vswitchd.conf.db.5: \
46 ovsdb/ovsdb-doc vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
49 --title="ovs-vswitchd.conf.db" \
50 $(VSWITCH_DOT_DIAGRAM_ARG) \
51 --version=$(VERSION) \
52 $(srcdir)/vswitchd/vswitch.ovsschema \
53 $(srcdir)/vswitchd/vswitch.xml > $@.tmp
56 # Version checking for vswitch.ovsschema.
57 ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp
58 vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema
59 @sum=`sed '/cksum/d' $? | cksum`; \
60 expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \
61 if test "X$$sum" = "X$$expected"; then \
64 ln=`sed -n '/"cksum":/=' $?`; \
65 echo >&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \
68 CLEANFILES += vswitchd/vswitch.ovsschema.stamp
70 # Clean up generated files from older OVS versions. (This is important so that
71 # #include "vswitch-idl.h" doesn't get the wrong copy.)
72 CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h