From c1ed320cafdf5020e93e8a7e8cc6bbbc9a3a8ace Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 30 Jun 2008 14:25:15 +0200 Subject: Fix pydoc for 'make distcheck' --- src/Makefile-files | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/Makefile-files b/src/Makefile-files index 0cf6017..d304652 100644 --- a/src/Makefile-files +++ b/src/Makefile-files @@ -34,12 +34,12 @@ if HAVE_PYDOC ALL_LOCAL += all-local-nbblib-pydoc all-local-nbblib-pydoc: all-local-nbblib - @mkdir -p pydoc && cd src && \ + @mkdir -p pydoc && \ echo "Entering directory '$$PWD'"; \ - for modfile in nbblib/*.py; do \ + for modfile in src/nbblib/*.py; do \ mod="nbblib.$$(basename "$$modfile" .py)"; \ test "$$mod" = "nbblib.__init__" && mod="nbblib"; \ - htmlfile="../pydoc/$${mod}.html"; \ + htmlfile="pydoc/$${mod}.html"; \ ls -l --full-time "$$htmlfile" "$$modfile"; \ : "Darn. Better let MAKE calculate the deps, perhaps?" ; \ rebuild="no"; \ @@ -50,13 +50,13 @@ all-local-nbblib-pydoc: all-local-nbblib else \ rebuild="yes"; \ fi; \ - if test "$rebuild" = "yes"; then \ + if test "$$rebuild" = "yes"; then \ echo $(PYDOC) -w "$${mod}"; \ - $(PYDOC) -w "$${mod}"; \ - if test -f "$$htmlfile" && cmp "$${mod}.html" "$$htmlfile"; \ - then rm -f "$${mod}.html"; \ + ( cd src && $(PYDOC) -w "$${mod}" ); \ + if test -f "$$htmlfile" && cmp "src/$${mod}.html" "$$htmlfile"; \ + then rm -f "src/$${mod}.html"; \ else echo "INFO: Updating pydoc/$${mod}.html"; \ - mv -f "$${mod}.html" "$$htmlfile"; fi; \ + mv -f "src/$${mod}.html" "$$htmlfile"; fi; \ fi; \ done; \ echo "Leaving directory '$$PWD'" -- cgit