diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-12 22:33:50 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-12 22:33:50 (GMT) |
commit | 04cf4dcf58709b35afaf7329e5e73401fc16566b (patch) | |
tree | decdc0efb8dc33e9c19adf1f8ec56472b0ba6386 /Doc | |
parent | e5bf8b2c7992a7507824f034c299bc74ca3c3d59 (diff) | |
download | cpython-04cf4dcf58709b35afaf7329e5e73401fc16566b.zip cpython-04cf4dcf58709b35afaf7329e5e73401fc16566b.tar.gz cpython-04cf4dcf58709b35afaf7329e5e73401fc16566b.tar.bz2 |
Added tarpdf target.
Don't remove *.texi & *.info for clean; only for clobber.
Don't remake tarballs if not needed (PDF & PS only). HTML tarball is still
painful.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index b9d22d8..c13ed08 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -70,12 +70,16 @@ PARTPARSE= $(PYTHON) ./partparse.pyc VERSION=1.5 +DVIFILES= api.dvi ext.dvi lib.dvi tut.dvi +PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf +PSFILES= api.ps ext.ps lib.ps tut.ps + # Main target all: all-ps -all-dvi: tut.dvi lib.dvi ext.dvi api.dvi -all-ps: tut.ps lib.ps ext.ps api.ps -all-pdf: tut.pdf lib.pdf ext.pdf api.pdf +all-dvi: $(DVIFILES) +all-pdf: $(PDFFILES) +all-ps: $(PSFILES) # Individual document fake targets tut: tut.ps @@ -244,29 +248,36 @@ l2hapi: api.dvi myformat.perl mv api/xxx api/api.html ln -s api.html api/index.html || true +pdf-$(VERSION).tar.gz: $(PDFFILES) + tar cf - ???.pdf | gzip -9 >pdf-$(VERSION).tar.gz + +postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps + cp ref/ref.ps . + tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz + rm ref.ps + tarhtml: @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?" tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \ | gzip -9 >html-$(VERSION).tar.gz -tarps: all-ps - cp ref/ref.ps . - tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz - rm ref.ps +tarps: postscript-$(VERSION).tar.gz + +tarpdf: pdf-$(VERSION).tar.gz -tarballs: tarps tarhtml +tarballs: tarpdf tarps tarhtml # Housekeeping targets # Remove temporary files; all except the following: # - sources: .tex, .bib, .sty -# - useful results: .dvi, .ps, .texi, .info +# - useful results: .dvi, .pdf, .ps, .texi, .info clean: l2hclean rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc - rm -f *.texi *.info* - rm -f *.bak *.orig + rm -f *.bak *.orig lib1.texi rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz + rm -f pdf-$(VERSION).tar.gz l2hclean: rm -rf api ext lib tut |