mirror of
https://github.com/openvswitch/ovs
synced 2025-10-07 13:40:45 +00:00
This utility isn't going to be as portable as most of the Open vSwitch utilities, unfortunately. I'm happy to take improvements to make it able to work with, e.g., the "man" program from BSD. (I haven't tested with that program, but I suspect that it is somewhat different from the GNU version.) The output of this program can already be viewed at: http://openvswitch.org/support/dist-docs/ Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
bin_PROGRAMS += \
|
|
vtep/vtep-ctl
|
|
|
|
MAN_ROOTS += \
|
|
vtep/vtep-ctl.8.in
|
|
|
|
DISTCLEANFILES += \
|
|
vtep/vtep-ctl.8
|
|
|
|
man_MANS += \
|
|
vtep/vtep-ctl.8
|
|
|
|
vtep_vtep_ctl_SOURCES = vtep/vtep-ctl.c
|
|
vtep_vtep_ctl_LDADD = lib/libopenvswitch.la
|
|
|
|
# ovs-vtep
|
|
scripts_SCRIPTS += \
|
|
vtep/ovs-vtep
|
|
|
|
docs += vtep/README.ovs-vtep.md
|
|
EXTRA_DIST += vtep/ovs-vtep
|
|
|
|
# VTEP schema and IDL
|
|
EXTRA_DIST += vtep/vtep.ovsschema
|
|
pkgdata_DATA += vtep/vtep.ovsschema
|
|
|
|
# VTEP E-R diagram
|
|
#
|
|
# If "python" or "dot" is not available, then we do not add graphical diagram
|
|
# to the documentation.
|
|
if HAVE_PYTHON
|
|
if HAVE_DOT
|
|
vtep/vtep.gv: ovsdb/ovsdb-dot.in vtep/vtep.ovsschema
|
|
$(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vtep/vtep.ovsschema > $@
|
|
vtep/vtep.pic: vtep/vtep.gv ovsdb/dot2pic
|
|
$(AM_V_GEN)(dot -T plain < vtep/vtep.gv | $(PERL) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
|
|
mv $@.tmp $@
|
|
VTEP_PIC = vtep/vtep.pic
|
|
VTEP_DOT_DIAGRAM_ARG = --er-diagram=$(VTEP_PIC)
|
|
DISTCLEANFILES += vtep/vtep.gv vtep/vtep.pic
|
|
endif
|
|
endif
|
|
|
|
# VTEP schema documentation
|
|
EXTRA_DIST += vtep/vtep.xml
|
|
DISTCLEANFILES += vtep/vtep.5
|
|
man_MANS += vtep/vtep.5
|
|
vtep/vtep.5: \
|
|
ovsdb/ovsdb-doc vtep/vtep.xml vtep/vtep.ovsschema $(VTEP_PIC)
|
|
$(AM_V_GEN)$(OVSDB_DOC) \
|
|
--title="vtep" \
|
|
$(VTEP_DOT_DIAGRAM_ARG) \
|
|
--version=$(VERSION) \
|
|
$(srcdir)/vtep/vtep.ovsschema \
|
|
$(srcdir)/vtep/vtep.xml > $@.tmp && \
|
|
mv $@.tmp $@
|
|
|
|
# Version checking for vtep.ovsschema.
|
|
ALL_LOCAL += vtep/vtep.ovsschema.stamp
|
|
vtep/vtep.ovsschema.stamp: vtep/vtep.ovsschema
|
|
@sum=`sed '/cksum/d' $? | cksum`; \
|
|
expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \
|
|
if test "X$$sum" = "X$$expected"; then \
|
|
touch $@; \
|
|
else \
|
|
ln=`sed -n '/"cksum":/=' $?`; \
|
|
echo >&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \
|
|
exit 1; \
|
|
fi
|
|
CLEANFILES += vtep/vtep.ovsschema.stamp
|