13 vtep_vtep_ctl_SOURCES = vtep/vtep-ctl.c
14 vtep_vtep_ctl_LDADD = lib/libopenvswitch.la $(SSL_LIBS)
25 EXTRA_DIST += vtep/vtep.ovsschema
26 pkgdata_DATA += vtep/vtep.ovsschema
30 # If "python" or "dot" is not available, then we do not add graphical diagram
31 # to the documentation.
34 vtep/vtep.gv: ovsdb/ovsdb-dot.in vtep/vtep.ovsschema
35 $(OVSDB_DOT) --no-arrows $(srcdir)/vtep/vtep.ovsschema > $@
36 vtep/vtep.pic: vtep/vtep.gv ovsdb/dot2pic
37 (dot -T plain < vtep/vtep.gv | $(srcdir)/ovsdb/dot2pic -f 3) > $@;
38 VTEP_PIC = vtep/vtep.pic
39 VTEP_DOT_DIAGRAM_ARG = --er-diagram=$(VTEP_PIC)
40 DISTCLEANFILES += vtep/vtep.gv vtep/vtep.pic
44 # VTEP schema documentation
45 EXTRA_DIST += vtep/vtep.xml
46 DISTCLEANFILES += vtep/vtep.5
47 dist_man_MANS += vtep/vtep.5
48 $(srcdir)/vtep/vtep.5: \
49 ovsdb/ovsdb-doc vtep/vtep.xml vtep/vtep.ovsschema $(VTEP_PIC)
52 $(VTEP_DOT_DIAGRAM_ARG) \
53 $(srcdir)/vtep/vtep.ovsschema \
54 $(srcdir)/vtep/vtep.xml > $@.tmp
57 # Version checking for vtep.ovsschema.
58 ALL_LOCAL += vtep/vtep.ovsschema.stamp
59 vtep/vtep.ovsschema.stamp: vtep/vtep.ovsschema
60 @sum=`sed '/cksum/d' $? | cksum`; \
61 expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \
62 if test "X$$sum" = "X$$expected"; then \
65 ln=`sed -n '/"cksum":/=' $?`; \
66 echo >&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \
69 CLEANFILES += vtep/vtep.ovsschema.stamp