Revised some targets to make better use of make "special" variables, to avoid

repeating file names.

Change lib.texi target to not overwrite the input file; work on a copy.
This commit is contained in:
Fred Drake 1998-02-19 16:01:04 +00:00
parent ef058037a5
commit a799835460
1 changed files with 16 additions and 7 deletions

View File

@ -73,6 +73,7 @@ PARTPARSE= $(PYTHON) $(PARTPARSEOBJ)
VERSION=1.5
DVIFILES= api.dvi ext.dvi lib.dvi tut.dvi
INFOFILES= python-lib.info
PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
PSFILES= api.ps ext.ps lib.ps tut.ps
@ -213,17 +214,18 @@ api.dvi: api.tex
# the info file gets generated.
lib1.texi: lib*.tex texipre.dat texipost.dat $(PARTPARSEOBJ)
$(PARTPARSE) -o lib1.texi `./whichlibs`
sed 's/"{\\}n{\\}n/"\\n\\n/' lib1.texi >lib2.texi
mv lib2.texi lib1.texi
$(PARTPARSE) -o $@ `./whichlibs`
sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
mv temp.texi $@
lib.texi: lib1.texi fix.el
cp lib1.texi temp.texi
$(EMACS) -batch -l fix.el -f save-buffer -kill
cp lib1.texi lib.texi
mv temp.texi $@
python-lib.info: lib.texi
-$(MAKEINFO) --footnote-style end --fill-column 72 \
--paragraph-indent 0 lib.texi
--paragraph-indent 0 $<
# this is needed to prevent a second set of info files from being generated,
# at least when using GNU make
@ -280,12 +282,15 @@ l2hapi: api.dvi myformat.perl
mv api/xxx api/api.html
ln -s api.html api/index.html || true
info-$(VERSION).tar.gz: $(INFOFILES)
tar cf - python-???.info* | gzip -9 >$@
pdf-$(VERSION).tar.gz: $(PDFFILES)
tar cf - ???.pdf | gzip -9 >pdf-$(VERSION).tar.gz
tar cf - ???.pdf | gzip -9 >$@
postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps
cp ref/ref.ps .
tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz
tar cf - ???.ps | gzip -9 >$@
rm ref.ps
tarhtml:
@ -293,6 +298,10 @@ tarhtml:
tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \
| gzip -9 >html-$(VERSION).tar.gz
# convenience targets:
tarinfo: info-$(VERSION).tar.gz
tarps: postscript-$(VERSION).tar.gz
tarpdf: pdf-$(VERSION).tar.gz