diff options
author | Fred Drake <fdrake@acm.org> | 1997-08-22 18:18:54 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1997-08-22 18:18:54 (GMT) |
commit | 03ff6f7474ddab72440aa65407fc50aa8eecb8bb (patch) | |
tree | 25a8a6df21f8344790b2b987f699be254a85d693 /Doc | |
parent | cd649654d7fb90ffb05d40406d962d4b06d01b23 (diff) | |
download | cpython-03ff6f7474ddab72440aa65407fc50aa8eecb8bb.zip cpython-03ff6f7474ddab72440aa65407fc50aa8eecb8bb.tar.gz cpython-03ff6f7474ddab72440aa65407fc50aa8eecb8bb.tar.bz2 |
Simplify LaTeX2HTML targets && support re-use of output directories (which
saves re-generation of images).
Add l2hclean target.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index e058689..40f4891 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -170,43 +170,33 @@ l2h: l2htut l2hext l2hlib l2hapi l2htut: tut.dvi myformat.perl $(L2H) $(L2HARGS) tut.tex - @rm -rf python-tut sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ <tut/tut.html >tut/xxx mv tut/xxx tut/tut.html - ln -s tut.html tut/index.html - mv tut python-tut + ln -s tut.html tut/index.html || true l2hext: ext.dvi myformat.perl $(L2H) $(L2HARGS) ext.tex - @rm -rf python-ext sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ <ext/ext.html >ext/xxx mv ext/xxx ext/ext.html - ln -s ext.html ext/index.html - @rm -rf python-ext - mv ext python-ext + ln -s ext.html ext/index.html || true l2hlib: lib.dvi myformat.perl - ./fix_libaux.sed <lib.aux >@lib.aux - mv @lib.aux lib.aux + ./fix_libaux.sed <lib.aux >lib1.aux + mv lib1.aux lib.aux $(L2H) $(L2HARGS) lib.tex sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ <lib/lib.html >lib/xxx mv lib/xxx lib/lib.html - ln -s lib.html lib/index.html - @rm -rf python-lib - mv lib python-lib + ln -s lib.html lib/index.html || true l2hapi: api.dvi myformat.perl $(L2H) $(L2HARGS) api.tex - @rm -rf python-api sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \ <api/api.html >api/xxx mv api/xxx api/api.html - ln -s api.html api/index.html - @rm -rf python-api - mv api python-api + ln -s api.html api/index.html || true # Housekeeping targets @@ -214,10 +204,13 @@ l2hapi: api.dvi myformat.perl # Remove temporary files; all except the following: # - sources: .tex, .bib, .sty # - useful results: .dvi, .ps, .texi, .info -clean: +clean: l2hclean rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc rm -f *.bak *.orig +l2hclean: + @rm -rf api ext lib tut + # Remove temporaries as well as final products clobber: clean rm -f *.dvi *.ps *.texi *.info *.info-[0-9]* |