Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a39a25e

Browse files
committed
(texi2html.py): Use "if __name__ == '__main__':" test. Adjust indentation
to 4 spaces per level (no longer 8). (Makefile): Use .pyc versions of partparse.py and texi2html.py to generate converted documentation formats. This reduces the startup costs; probably doesn't affect anyone but me in reality, but helps when working on the docs.
1 parent 0bc253d commit a39a25e

4 files changed

Lines changed: 3970 additions & 3978 deletions

File tree

Doc/Makefile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ L2H= /ufs/guido/l2h/latex2html
5858
L2HARGS= -address $$USER@`domainname` -dont_include myformat
5959

6060
# Destination directory for output of libwww target.
61+
PARTPARSE= $(PYTHON) ./partparse.pyc
62+
TEXI2HTML= $(PYTHON) ./texi2html.pyc
6163
LIBHTMLDIR= ./python-lib
6264

6365
# Install destination -- not used now but might be useful some time...
@@ -165,22 +167,27 @@ qua.ps: qua.dvi
165167
# The remaining part of the Makefile is concerned with various
166168
# conversions, as described above. See also the README file.
167169

168-
lib.texi: lib*.tex texipre.dat texipost.dat partparse.py fix.el
169-
$(PYTHON) partparse.py -o @lib.texi `./whichlibs`
170-
$(EMACS) -batch -l fix.el -f save-buffer -kill
171-
mv @lib.texi lib.texi
170+
.SUFFIXES: .py .pyc
171+
172+
.py.pyc:
173+
$(PYTHON) -c "import $*"
172174

173175
.PRECIOUS: lib.texi
174176

177+
lib.texi: lib*.tex texipre.dat texipost.dat partparse.pyc fix.el
178+
$(PARTPARSE) -o @lib.texi `./whichlibs`
179+
$(EMACS) -batch -l fix.el -f save-buffer -kill
180+
mv @lib.texi lib.texi
181+
175182
python-lib.info: lib.texi
176183
-$(MAKEINFO) --footnote-style end --fill-column 72 \
177184
--paragraph-indent 0 lib.texi
178185

179186
lib.info: python-lib.info
180187

181-
libwww: lib.texi
188+
libwww: lib.texi texi2html.pyc
182189
if test ! -d $(LIBHTMLDIR); then mkdir $(LIBHTMLDIR); else true; fi
183-
$(PYTHON) texi2html.py -d lib.texi $(LIBHTMLDIR)
190+
$(TEXI2HTML) -d lib.texi $(LIBHTMLDIR)
184191

185192
# Targets to convert the manuals to HTML using Nikos Drakos' LaTeX to
186193
# HTML converter. For more info on this program, see

0 commit comments

Comments
 (0)