That is, all Python code except unittests. In particular,
autotool/build-bash-completion was missing from the
previous list.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
all_python_code = \
$(dist_sbin_SCRIPTS) \
$(dist_tools_SCRIPTS) \
- $(dist_TESTS) \
$(pkgpython_PYTHON) \
$(hypervisor_PYTHON) \
$(rapi_PYTHON) \
$(confd_PYTHON) \
$(noinst_PYTHON)
+all_python_code_with_tests = \
+ $(all_python_code) \
+ $(dist_TESTS)
+
srclink_files = \
man/footer.sgml \
- $(all_python_code)
+ $(all_python_code_with_tests)
check_python_code = \
- autotools/build-bash-completion \
+ $(BUILD_BASH_COMPLETION) \
+ $(all_python_code_with_tests)
+
+lint_python_code = \
+ $(BUILD_BASH_COMPLETION) \
$(all_python_code)
devel/upload: devel/upload.in $(REPLACE_VARS_SED)
.PHONY: lint
lint: ganeti
- pylint $(LINT_OPTS) ganeti $(dist_sbin_SCRIPTS) $(dist_tools_SCRIPTS)
+ pylint $(LINT_OPTS) $(lint_python_code)
# a dist hook rule for catching revision control directories
distcheck-hook: