ovsdb-doc: Get manpage name from the XML file instead of command line.
[cascardo/ovs.git] / ovsdb / automake.mk
1 # libovsdb
2 lib_LTLIBRARIES += ovsdb/libovsdb.la
3 ovsdb_libovsdb_la_LDFLAGS = \
4         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
5         -Wl,--version-script=$(top_builddir)/ovsdb/libovsdb.sym \
6         $(AM_LDFLAGS)
7 ovsdb_libovsdb_la_SOURCES = \
8         ovsdb/column.c \
9         ovsdb/column.h \
10         ovsdb/condition.c \
11         ovsdb/condition.h \
12         ovsdb/execution.c \
13         ovsdb/file.c \
14         ovsdb/file.h \
15         ovsdb/jsonrpc-server.c \
16         ovsdb/jsonrpc-server.h \
17         ovsdb/log.c \
18         ovsdb/log.h \
19         ovsdb/mutation.c \
20         ovsdb/mutation.h \
21         ovsdb/ovsdb.c \
22         ovsdb/ovsdb.h \
23         ovsdb/query.c \
24         ovsdb/query.h \
25         ovsdb/row.c \
26         ovsdb/row.h \
27         ovsdb/server.c \
28         ovsdb/server.h \
29         ovsdb/table.c \
30         ovsdb/table.h \
31         ovsdb/trigger.c \
32         ovsdb/trigger.h \
33         ovsdb/transaction.c \
34         ovsdb/transaction.h
35 ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
36 ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)
37
38 pkgconfig_DATA += \
39         $(srcdir)/ovsdb/libovsdb.pc
40
41 MAN_FRAGMENTS += \
42         ovsdb/remote-active.man \
43         ovsdb/remote-passive.man
44
45 # ovsdb-tool
46 bin_PROGRAMS += ovsdb/ovsdb-tool
47 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
48 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
49 # ovsdb-tool.1
50 man_MANS += ovsdb/ovsdb-tool.1
51 DISTCLEANFILES += ovsdb/ovsdb-tool.1
52 MAN_ROOTS += ovsdb/ovsdb-tool.1.in
53
54 # ovsdb-client
55 bin_PROGRAMS += ovsdb/ovsdb-client
56 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
57 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
58 # ovsdb-client.1
59 man_MANS += ovsdb/ovsdb-client.1
60 DISTCLEANFILES += ovsdb/ovsdb-client.1
61 MAN_ROOTS += ovsdb/ovsdb-client.1.in
62
63 # ovsdb-server
64 sbin_PROGRAMS += ovsdb/ovsdb-server
65 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
66 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
67 # ovsdb-server.1
68 man_MANS += ovsdb/ovsdb-server.1
69 DISTCLEANFILES += ovsdb/ovsdb-server.1
70 MAN_ROOTS += ovsdb/ovsdb-server.1.in
71
72 # ovsdb-idlc
73 noinst_SCRIPTS += ovsdb/ovsdb-idlc
74 EXTRA_DIST += ovsdb/ovsdb-idlc.in
75 MAN_ROOTS += ovsdb/ovsdb-idlc.1
76 DISTCLEANFILES += ovsdb/ovsdb-idlc
77 SUFFIXES += .ovsidl .ovsschema
78 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
79 .ovsidl.c:
80         $(AM_V_GEN)$(OVSDB_IDLC) c-idl-source $< > $@.tmp && mv $@.tmp $@
81 .ovsidl.h:
82         $(AM_V_GEN)$(OVSDB_IDLC) c-idl-header $< > $@.tmp && mv $@.tmp $@
83
84 EXTRA_DIST += $(OVSIDL_BUILT)
85 BUILT_SOURCES += $(OVSIDL_BUILT)
86
87 # This must be done late: macros in targets are expanded when the
88 # target line is read, so if this file were to be included before some
89 # other file that added to OVSIDL_BUILT, then those files wouldn't get
90 # the dependency.
91 #
92 # However, current versions of Automake seem to output all variable
93 # assignments before any targets, so it doesn't seem to be a problem,
94 # at least for now.
95 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
96
97 # ovsdb-doc
98 EXTRA_DIST += ovsdb/ovsdb-doc
99 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
100
101 # ovsdb-dot
102 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
103 noinst_SCRIPTS += ovsdb/ovsdb-dot
104 DISTCLEANFILES += ovsdb/ovsdb-dot
105 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in