Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04cf4dc

Browse files
committed
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.
1 parent e5bf8b2 commit 04cf4dc

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

Doc/Makefile

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,16 @@ PARTPARSE= $(PYTHON) ./partparse.pyc
7070

7171
VERSION=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
7478
all: 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
8185
tut: 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+
247259
tarhtml:
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
265276
clean: 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

271282
l2hclean:
272283
rm -rf api ext lib tut

0 commit comments

Comments
 (0)