CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code
CHECK_MAN = $(top_srcdir)/autotools/check-man
CHECK_VERSION = $(top_srcdir)/autotools/check-version
+CHECK_NEWS = $(top_srcdir)/autotools/check-news
REPLACE_VARS_SED = autotools/replace_vars.sed
clientdir = $(pkgpythondir)/client
$(addsuffix /*.py[co],$(DIRS)) \
$(all_dirfiles) \
$(PYTHON_BOOTSTRAP) \
+ epydoc.conf \
autotools/replace_vars.sed \
daemons/daemon-util \
daemons/ensure-dirs \
doc/examples/hooks/ipsec \
$(man_MANS) \
$(manhtml) \
+ tools/kvm-ifup \
stamp-srclinks \
$(nodist_pkgpython_PYTHON)
lib/utils/log.py \
lib/utils/mlock.py \
lib/utils/nodesetup.py \
+ lib/utils/process.py \
lib/utils/retry.py \
lib/utils/text.py \
lib/utils/wrapper.py \
doc/design-2.1.rst \
doc/design-2.2.rst \
doc/design-2.3.rst \
+ doc/design-2.4.rst \
doc/design-oob.rst \
doc/design-query2.rst \
doc/cluster-merge.rst \
pkglib_SCRIPTS = \
daemons/daemon-util \
daemons/ensure-dirs \
+ tools/kvm-ifup \
$(pkglib_python_scripts)
EXTRA_DIST = \
NEWS \
UPGRADE \
+ epydoc.conf.in \
pylintrc \
autotools/build-bash-completion \
autotools/check-python-code \
autotools/check-man \
+ autotools/check-news \
autotools/check-tar \
autotools/check-version \
autotools/gen-coverage \
daemons/ganeti-cleaner.in \
$(pkglib_python_scripts) \
devel/upload.in \
+ tools/kvm-ifup.in \
$(docdot) \
$(docpng) \
$(docrst) \
test/ganeti.utils.io_unittest.py \
test/ganeti.utils.mlock_unittest.py \
test/ganeti.utils.nodesetup_unittest.py \
+ test/ganeti.utils.process_unittest.py \
test/ganeti.utils.retry_unittest.py \
test/ganeti.utils.text_unittest.py \
test/ganeti.utils.wrapper_unittest.py \
test/ganeti-cleaner_unittest.bash: daemons/ganeti-cleaner
+tools/kvm-ifup: tools/kvm-ifup.in $(REPLACE_VARS_SED)
+ sed -f $(REPLACE_VARS_SED) < $< > $@
+ chmod +x $@
+
devel/upload: devel/upload.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@
chmod u+x $@
$(PANDOC) -s -f rst -t html -A man/footer.html $< | \
sed -e 's/\\@/@/g' > $@
-
man/%.7: man/%.7.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@
man/%.html: man/%.html.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@
+epydoc.conf: epydoc.conf.in
+ sed -e 's#@MODULES@#$(lint_python_code)#g' < $< > $@
+
vcs-version:
if test -d .git; then \
git describe > $@; \
check-local: check-dirs
$(CHECK_PYTHON_CODE) $(check_python_code)
$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
+ $(CHECK_NEWS) < $(top_srcdir)/NEWS
.PHONY: lint
lint: $(BUILT_SOURCES)
@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
$(PYLINT) $(LINT_OPTS) $(lint_python_code)
+ cd $(top_srcdir)/qa && \
+ PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS) \
+ --rcfile ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts))
# a dist hook rule for updating the vcs-version file; this is
# hardcoded due to where it needs to build the file...