@@ -70,12 +70,16 @@ PARTPARSE= $(PYTHON) ./partparse.pyc
7070
7171VERSION =1.5
7272
73+ DVIFILES = api.dvi ext.dvi lib.dvi tut.dvi
74+ PDFFILES = api.pdf ext.pdf lib.pdf tut.pdf
75+ PSFILES = api.ps ext.ps lib.ps tut.ps
76+
7377# Main target
7478all : all-ps
7579
76- all-dvi : tut.dvi lib.dvi ext.dvi api.dvi
77- all-ps : tut.ps lib.ps ext.ps api.ps
78- all-pdf : tut.pdf lib.pdf ext.pdf api.pdf
80+ all-dvi : $( DVIFILES )
81+ all-pdf : $( PDFFILES )
82+ all-ps : $( PSFILES )
7983
8084# Individual document fake targets
8185tut : tut.ps
@@ -244,29 +248,36 @@ l2hapi: api.dvi myformat.perl
244248 mv api/xxx api/api.html
245249 ln -s api.html api/index.html || true
246250
251+ pdf-$(VERSION ) .tar.gz : $(PDFFILES )
252+ tar cf - ??? .pdf | gzip -9 > pdf-$(VERSION ) .tar.gz
253+
254+ postscript-$(VERSION ) .tar.gz : $(PSFILES ) ref/ref.ps
255+ cp ref/ref.ps .
256+ tar cf - ??? .ps | gzip -9 > postscript-$(VERSION ) .tar.gz
257+ rm ref.ps
258+
247259tarhtml :
248260 @echo " Did you remember to run makeMIFs.py in the ref subdirectory...?"
249261 tar cf - index.html ??? /??? .css ??? /* .html lib/* .gif icons/* .* \
250262 | gzip -9 > html-$(VERSION ) .tar.gz
251263
252- tarps : all-ps
253- cp ref/ref.ps .
254- tar cf - ??? .ps | gzip -9 > postscript-$(VERSION ) .tar.gz
255- rm ref.ps
264+ tarps : postscript-$(VERSION ) .tar.gz
265+
266+ tarpdf : pdf-$(VERSION ) .tar.gz
256267
257- tarballs : tarps tarhtml
268+ tarballs : tarpdf tarps tarhtml
258269
259270
260271# Housekeeping targets
261272
262273# Remove temporary files; all except the following:
263274# - sources: .tex, .bib, .sty
264- # - useful results: .dvi, .ps, .texi, .info
275+ # - useful results: .dvi, .pdf, . ps, .texi, .info
265276clean : l2hclean
266277 rm -f @* * ~ * .aux * .idx * .ilg * .ind * .log * .toc * .blg * .bbl * .pyc
267- rm -f * .texi * .info*
268- rm -f * .bak * .orig
278+ rm -f * .bak * .orig lib1.texi
269279 rm -f html-$(VERSION ) .tar.gz postscript-$(VERSION ) .tar.gz
280+ rm -f pdf-$(VERSION ) .tar.gz
270281
271282l2hclean :
272283 rm -rf api ext lib tut
0 commit comments