Commit f774bd03 authored by Michael Hanselmann's avatar Michael Hanselmann

Build epydoc's module list from Makefile

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 7be85163
......@@ -24,6 +24,7 @@
/config.log
/config.status
/configure
/epydoc.conf
/ganeti
/stamp-srclinks
/vcs-version
......
......@@ -90,6 +90,7 @@ CLEANFILES = \
$(addsuffix /*.py[co],$(DIRS)) \
$(all_dirfiles) \
$(PYTHON_BOOTSTRAP) \
epydoc.conf \
autotools/replace_vars.sed \
daemons/daemon-util \
daemons/ensure-dirs \
......@@ -371,6 +372,7 @@ pkglib_SCRIPTS = \
EXTRA_DIST = \
NEWS \
UPGRADE \
epydoc.conf.in \
pylintrc \
autotools/build-bash-completion \
autotools/check-python-code \
......@@ -623,7 +625,6 @@ man/%.html.in: man/%.rst man/footer.html
$(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) < $< > $@
......@@ -633,6 +634,9 @@ man/%.8: man/%.8.in $(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 > $@; \
......
......@@ -5,7 +5,7 @@ set -e
tmpdir=$(mktemp -d -t gntbuild.XXXXXXXX)
trap "rm -rf $tmpdir" EXIT
cp -r daemons scripts lib tools test $tmpdir
cp -r autotools daemons scripts lib tools test $tmpdir
mv $tmpdir/lib $tmpdir/ganeti
cd $tmpdir && GANETI_TEMP_DIR="$tmpdir" "$@"
......@@ -8,11 +8,10 @@ output: html
# note: the wildcards means the directories should be cleaned up after each
# run, otherwise there will be stale '*c' (compiled) files that will not be
# parsable and will break the epydoc run
modules: ganeti, scripts/gnt-*, daemons/ganeti-confd, daemons/ganeti-masterd, daemons/ganeti-noded, daemons/ganeti-rapi, daemons/ganeti-watcher, daemons/import-export, tools/burnin, tools/cfgshell, tools/cfgupgrade, tools/cfgupgrade12, tools/check-cert-expired, tools/cluster-merge, tools/ganeti-listrunner, tools/lvmstrap, tools/move-instance, tools/sanitize-config, tools/setup-ssh
modules: @MODULES@
graph: all
simple-term: 1
docformat: epytext
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment