X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fautomake.mk;h=37d669bb3b01168f4612e95e9d73f74cf054e1ab;hb=169e3808f7c510a048589d8e658336919079a6a0;hp=1596a4b5add9cfe5722994574df229b8d735071f;hpb=250382a8fc839cb077b2636983a1c1de0d6b0e17;p=openvswitch diff --git a/ovsdb/automake.mk b/ovsdb/automake.mk index 1596a4b5..37d669bb 100644 --- a/ovsdb/automake.mk +++ b/ovsdb/automake.mk @@ -60,6 +60,8 @@ EXTRA_DIST += ovsdb/ovsdb-server.1.in # ovsdb-idlc EXTRA_DIST += \ + ovsdb/OVSDB.py \ + ovsdb/SPECS \ ovsdb/simplejson/__init__.py \ ovsdb/simplejson/_speedups.c \ ovsdb/simplejson/decoder.py \ @@ -82,21 +84,37 @@ EXTRA_DIST += \ ovsdb/simplejson/tests/test_separators.py \ ovsdb/simplejson/tests/test_unicode.py \ ovsdb/simplejson/tool.py -noinst_SCRIPTS += ovsdb/ovsdb-idlc +noinst_SCRIPTS += ovsdb/ovsdb-idlc EXTRA_DIST += \ ovsdb/ovsdb-idlc.in \ ovsdb/ovsdb-idlc.1 DISTCLEANFILES += ovsdb/ovsdb-idlc -SUFFIXES += .ovsidl .txt +SUFFIXES += .ovsidl +OVSDB_IDLC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in .ovsidl.c: - $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in c-idl-source $< > $@.tmp + $(OVSDB_IDLC) c-idl-source $< > $@.tmp mv $@.tmp $@ .ovsidl.h: - $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in c-idl-header $< > $@.tmp - mv $@.tmp $@ -.ovsidl.ovsschema: - $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in ovsdb-schema $< > $@.tmp - mv $@.tmp $@ -.ovsidl.txt: - $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in doc $< | fmt -s > $@.tmp + $(OVSDB_IDLC) c-idl-header $< > $@.tmp mv $@.tmp $@ + +EXTRA_DIST += $(OVSIDL_BUILT) +BUILT_SOURCES += $(OVSIDL_BUILT) + +# This must be done late: macros in targets are expanded when the +# target line is read, so if this file were to be included before some +# other file that added to OVSIDL_BUILT, then those files wouldn't get +# the dependency. +# +# However, current versions of Automake seem to output all variable +# assignments before any targets, so it doesn't seem to be a problem, +# at least for now. +$(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in + +# ovsdb-doc +EXTRA_DIST += ovsdb/ovsdb-doc.in +noinst_SCRIPTS += ovsdb/ovsdb-doc +DISTCLEANFILES += ovsdb/ovsdb-doc +OVSDB_DOC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-doc.in + +include ovsdb/ovsdbmonitor/automake.mk