Commit 04cf4dcf authored by Fred Drake's avatar Fred Drake

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.
parent e5bf8b2c
...@@ -70,12 +70,16 @@ PARTPARSE= $(PYTHON) ./partparse.pyc ...@@ -70,12 +70,16 @@ PARTPARSE= $(PYTHON) ./partparse.pyc
VERSION=1.5 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 # Main target
all: all-ps all: all-ps
all-dvi: tut.dvi lib.dvi ext.dvi api.dvi all-dvi: $(DVIFILES)
all-ps: tut.ps lib.ps ext.ps api.ps all-pdf: $(PDFFILES)
all-pdf: tut.pdf lib.pdf ext.pdf api.pdf all-ps: $(PSFILES)
# Individual document fake targets # Individual document fake targets
tut: tut.ps tut: tut.ps
...@@ -244,29 +248,36 @@ l2hapi: api.dvi myformat.perl ...@@ -244,29 +248,36 @@ l2hapi: api.dvi myformat.perl
mv api/xxx api/api.html mv api/xxx api/api.html
ln -s api.html api/index.html || true 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: tarhtml:
@echo "Did you remember to run makeMIFs.py in the ref subdirectory...?" @echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \ tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \
| gzip -9 >html-$(VERSION).tar.gz | gzip -9 >html-$(VERSION).tar.gz
tarps: all-ps tarps: postscript-$(VERSION).tar.gz
cp ref/ref.ps .
tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz tarpdf: pdf-$(VERSION).tar.gz
rm ref.ps
tarballs: tarps tarhtml tarballs: tarpdf tarps tarhtml
# Housekeeping targets # Housekeeping targets
# 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, .pdf, .ps, .texi, .info
clean: l2hclean 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 *.texi *.info* rm -f *.bak *.orig lib1.texi
rm -f *.bak *.orig
rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz
rm -f pdf-$(VERSION).tar.gz
l2hclean: l2hclean:
rm -rf api ext lib tut rm -rf api ext lib tut
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment