X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fautomake.mk;h=592be607a7a782fa1f24a70d03395274ed0e5e0d;hb=3f09c339f7e5e3d74bb06600b7f05c8efccbf132;hp=6c2019118828a8cedc015ba3db86f81eaa202a6d;hpb=4cdb08c02a3d3067194c659a442d3679cdd8dd35;p=openvswitch diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index 6c201911..592be607 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -46,13 +46,31 @@ vswitchd/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES) $(OVSDB_IDLC) -C $(srcdir) annotate $(VSWITCH_IDL_FILES) > $@.tmp mv $@.tmp $@ +# vswitch E-R diagram +if BUILD_ER_DIAGRAMS +$(srcdir)/vswitchd/vswitch.pic: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema + $(OVSDB_DOT) $(srcdir)/vswitchd/vswitch.ovsschema \ + | dot -T pic \ + | sed -e "/^'/d" \ + -e '/^box attrs0/d' \ + -e 's/linethick = 0;/linethick = 1;/' \ + > $@.tmp + mv $@.tmp $@ +else +$(srcdir)/vswitchd/vswitch.pic: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema + touch $@ +endif +EXTRA_DIST += vswitchd/vswitch.pic + # vswitch schema documentation EXTRA_DIST += vswitchd/vswitch.xml dist_man_MANS += vswitchd/ovs-vswitchd.conf.db.5 vswitchd/ovs-vswitchd.conf.db.5: \ - ovsdb/ovsdb-doc.in vswitchd/vswitch.xml vswitchd/vswitch.ovsschema + ovsdb/ovsdb-doc.in vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \ + $(srcdir)/vswitchd/vswitch.pic $(OVSDB_DOC) \ --title="ovs-vswitchd.conf.db" \ + --er-diagram=$(srcdir)/vswitchd/vswitch.pic \ $(srcdir)/vswitchd/vswitch.ovsschema \ $(srcdir)/vswitchd/vswitch.xml > $@.tmp mv $@.tmp $@