CHECK_MAN = $(top_srcdir)/autotools/check-man
REPLACE_VARS_SED = autotools/replace_vars.sed
+clientdir = $(pkgpythondir)/client
hypervisordir = $(pkgpythondir)/hypervisor
httpdir = $(pkgpythondir)/http
masterddir = $(pkgpythondir)/masterd
doc/examples/hooks \
doc/examples/gnt-debug \
lib \
+ lib/client \
lib/build \
lib/confd \
lib/http \
CLEANFILES = \
$(addsuffix /*.py[co],$(DIRS)) \
+ $(PYTHON_BOOTSTRAP) \
autotools/replace_vars.sed \
daemons/daemon-util \
daemons/ensure-dirs \
lib/uidpool.py \
lib/workerpool.py
+client_PYTHON = \
+ lib/client/__init__.py
+
hypervisor_PYTHON = \
lib/hypervisor/__init__.py \
lib/hypervisor/hv_base.py \
scripts/gnt-node \
scripts/gnt-os
+PYTHON_BOOTSTRAP =
+
dist_sbin_SCRIPTS = \
daemons/ganeti-noded \
daemons/ganeti-watcher \
$(gnt_scripts)
nodist_sbin_SCRIPTS = \
+ $(PYTHON_BOOTSTRAP) \
daemons/ganeti-cleaner
dist_tools_SCRIPTS = \
$(pkglib_python_scripts) \
$(python_tests) \
$(pkgpython_PYTHON) \
+ $(client_PYTHON) \
$(hypervisor_PYTHON) \
$(rapi_PYTHON) \
$(http_PYTHON) \
echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \
} > $@
+$(PYTHON_BOOTSTRAP): Makefile
+ set -e; \
+ module='$(subst -,_,$(notdir $@))'; \
+ { echo "#!$(PYTHON)"; \
+ echo '# This file is automatically generated, do not edit!'; \
+ echo "# Edit ganeti.client.$$module instead."; \
+ echo; \
+ echo '"""Bootstrap script for L{ganeti.client.'"$$module"'}"""'; \
+ echo; \
+ echo '# pylint: disable-msg=C0103'; \
+ echo '# C0103: Invalid name'; \
+ echo; \
+ echo 'import sys'; \
+ echo "from ganeti.client import $$module"; \
+ echo; \
+ echo '# Temporarily alias commands until bash completion'; \
+ echo '# generator is changed'; \
+ echo "if hasattr($$module, \"commands\"):"; \
+ echo " commands = $$module.commands"; \
+ echo; \
+ echo 'if __name__ == "__main__":'; \
+ echo " sys.exit($$module.Main())"; \
+ } > $@
+ chmod u+x $@
+
# We need to create symlinks because "make distcheck" will not install Python
# files when building.
stamp-srclinks: Makefile stamp-directories