diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-19 16:01:04 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-19 16:01:04 (GMT) |
commit | a799835460d8162e2abe6e24b6bcf3b4c1627375 (patch) | |
tree | 4125451c91586382e5a3fee494a35cedd18ecbe8 /Doc | |
parent | ef058037a590e10e8a7f26b069c17315ef119787 (diff) | |
download | cpython-a799835460d8162e2abe6e24b6bcf3b4c1627375.zip cpython-a799835460d8162e2abe6e24b6bcf3b4c1627375.tar.gz cpython-a799835460d8162e2abe6e24b6bcf3b4c1627375.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index 7501ace..4281d40 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -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 |