]> git.proxmox.com Git - ovs.git/blob - python/automake.mk
ovs-test: A new tool that allows to diagnose connectivity and performance issues
[ovs.git] / python / automake.mk
1 run_python = PYTHONPATH=$(top_srcdir)/python:$$PYTHON_PATH $(PYTHON)
2
3 ovstest_pyfiles = \
4 python/ovstest/__init__.py \
5 python/ovstest/args.py \
6 python/ovstest/rpcserver.py \
7 python/ovstest/tcp.py \
8 python/ovstest/udp.py \
9 python/ovstest/util.py
10
11 ovs_pyfiles = \
12 python/ovs/__init__.py \
13 python/ovs/daemon.py \
14 python/ovs/db/__init__.py \
15 python/ovs/db/data.py \
16 python/ovs/db/error.py \
17 python/ovs/db/idl.py \
18 python/ovs/db/parser.py \
19 python/ovs/db/schema.py \
20 python/ovs/db/types.py \
21 python/ovs/fatal_signal.py \
22 python/ovs/json.py \
23 python/ovs/jsonrpc.py \
24 python/ovs/ovsuuid.py \
25 python/ovs/poller.py \
26 python/ovs/process.py \
27 python/ovs/reconnect.py \
28 python/ovs/socket_util.py \
29 python/ovs/stream.py \
30 python/ovs/timeval.py \
31 python/ovs/vlog.py \
32 python/ovs/util.py
33 EXTRA_DIST += $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles)
34
35 if HAVE_PYTHON
36 nobase_pkgdata_DATA = $(ovs_pyfiles) $(ovstest_pyfiles)
37 ovs-install-data-local:
38 $(MKDIR_P) python/ovs
39 (echo "import os" && \
40 echo 'PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """$(pkgdatadir)""")' && \
41 echo 'RUNDIR = os.environ.get("OVS_RUNDIR", """@RUNDIR@""")' && \
42 echo 'LOGDIR = os.environ.get("OVS_LOGDIR", """@LOGDIR@""")' && \
43 echo 'BINDIR = os.environ.get("OVS_BINDIR", """$(bindir)""")') \
44 > python/ovs/dirs.py.tmp
45 $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/python/ovs
46 $(INSTALL_DATA) python/ovs/dirs.py.tmp $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
47 rm python/ovs/dirs.py.tmp
48 else
49 ovs-install-data-local:
50 @:
51 endif
52 install-data-local: ovs-install-data-local
53
54 UNINSTALL_LOCAL += ovs-uninstall-local
55 ovs-uninstall-local:
56 rm -f $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py