diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-06-30 14:25:15 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-15 12:28:54 +0200 |
commit | c1ed320cafdf5020e93e8a7e8cc6bbbc9a3a8ace (patch) | |
tree | c3ad9b83d113a6a762ab6d3136883778b5ee97d4 /src | |
parent | 81edb044ae18a6d71f75559a8fb46fe125af17aa (diff) | |
download | nbb-c1ed320cafdf5020e93e8a7e8cc6bbbc9a3a8ace.tar.gz nbb-c1ed320cafdf5020e93e8a7e8cc6bbbc9a3a8ace.tar.xz nbb-c1ed320cafdf5020e93e8a7e8cc6bbbc9a3a8ace.zip |
Fix pydoc for 'make distcheck'
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile-files | 16 |
1 files changed, 8 insertions, 8 deletions
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'" |