mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Simplify LaTeX2HTML targets && support re-use of output directories (which
saves re-generation of images). Add l2hclean target.
This commit is contained in:
parent
cd649654d7
commit
03ff6f7474
1 changed files with 10 additions and 17 deletions
27
Doc/Makefile
27
Doc/Makefile
|
|
@ -170,43 +170,33 @@ l2h: l2htut l2hext l2hlib l2hapi
|
||||||
|
|
||||||
l2htut: tut.dvi myformat.perl
|
l2htut: tut.dvi myformat.perl
|
||||||
$(L2H) $(L2HARGS) tut.tex
|
$(L2H) $(L2HARGS) tut.tex
|
||||||
@rm -rf python-tut
|
|
||||||
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
||||||
<tut/tut.html >tut/xxx
|
<tut/tut.html >tut/xxx
|
||||||
mv tut/xxx tut/tut.html
|
mv tut/xxx tut/tut.html
|
||||||
ln -s tut.html tut/index.html
|
ln -s tut.html tut/index.html || true
|
||||||
mv tut python-tut
|
|
||||||
|
|
||||||
l2hext: ext.dvi myformat.perl
|
l2hext: ext.dvi myformat.perl
|
||||||
$(L2H) $(L2HARGS) ext.tex
|
$(L2H) $(L2HARGS) ext.tex
|
||||||
@rm -rf python-ext
|
|
||||||
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
||||||
<ext/ext.html >ext/xxx
|
<ext/ext.html >ext/xxx
|
||||||
mv ext/xxx ext/ext.html
|
mv ext/xxx ext/ext.html
|
||||||
ln -s ext.html ext/index.html
|
ln -s ext.html ext/index.html || true
|
||||||
@rm -rf python-ext
|
|
||||||
mv ext python-ext
|
|
||||||
|
|
||||||
l2hlib: lib.dvi myformat.perl
|
l2hlib: lib.dvi myformat.perl
|
||||||
./fix_libaux.sed <lib.aux >@lib.aux
|
./fix_libaux.sed <lib.aux >lib1.aux
|
||||||
mv @lib.aux lib.aux
|
mv lib1.aux lib.aux
|
||||||
$(L2H) $(L2HARGS) lib.tex
|
$(L2H) $(L2HARGS) lib.tex
|
||||||
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
||||||
<lib/lib.html >lib/xxx
|
<lib/lib.html >lib/xxx
|
||||||
mv lib/xxx lib/lib.html
|
mv lib/xxx lib/lib.html
|
||||||
ln -s lib.html lib/index.html
|
ln -s lib.html lib/index.html || true
|
||||||
@rm -rf python-lib
|
|
||||||
mv lib python-lib
|
|
||||||
|
|
||||||
l2hapi: api.dvi myformat.perl
|
l2hapi: api.dvi myformat.perl
|
||||||
$(L2H) $(L2HARGS) api.tex
|
$(L2H) $(L2HARGS) api.tex
|
||||||
@rm -rf python-api
|
|
||||||
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
sed 's/^<P CLASS=ABSTRACT>,/<P CLASS=ABSTRACT>/' \
|
||||||
<api/api.html >api/xxx
|
<api/api.html >api/xxx
|
||||||
mv api/xxx api/api.html
|
mv api/xxx api/api.html
|
||||||
ln -s api.html api/index.html
|
ln -s api.html api/index.html || true
|
||||||
@rm -rf python-api
|
|
||||||
mv api python-api
|
|
||||||
|
|
||||||
|
|
||||||
# Housekeeping targets
|
# Housekeeping targets
|
||||||
|
|
@ -214,10 +204,13 @@ l2hapi: api.dvi myformat.perl
|
||||||
# Remove temporary files; all except the following:
|
# Remove temporary files; all except the following:
|
||||||
# - sources: .tex, .bib, .sty
|
# - sources: .tex, .bib, .sty
|
||||||
# - useful results: .dvi, .ps, .texi, .info
|
# - useful results: .dvi, .ps, .texi, .info
|
||||||
clean:
|
clean: l2hclean
|
||||||
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
|
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
|
||||||
rm -f *.bak *.orig
|
rm -f *.bak *.orig
|
||||||
|
|
||||||
|
l2hclean:
|
||||||
|
@rm -rf api ext lib tut
|
||||||
|
|
||||||
# Remove temporaries as well as final products
|
# Remove temporaries as well as final products
|
||||||
clobber: clean
|
clobber: clean
|
||||||
rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*
|
rm -f *.dvi *.ps *.texi *.info *.info-[0-9]*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue