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

Skip to content

Commit 7dcc69a

Browse files
committed
Add zip archive support for html, pdf, ps, and latex archives.
"zips" target produces all possible .zip files.
1 parent 8ea15f3 commit 7dcc69a

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

Doc/Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,30 @@ info-$(RELEASE).tgz: info
211211
latex-$(RELEASE).tgz:
212212
$(TOOLSDIR)/mktarball.sh $(RELEASE)
213213

214+
latex-$(RELEASE).zip:
215+
$(TOOLSDIR)/mktarball.sh --zip $(RELEASE)
216+
214217
pdf-$(PAPER)-$(RELEASE).tgz: pdf
215218
(cd paper-$(PAPER); tar cf - *.pdf) | gzip -9 >$@
216219

220+
pdf-$(PAPER)-$(RELEASE).zip: pdf
221+
(cd paper-$(PAPER); zip -9 ../$@ *.pdf)
222+
217223
postscript-$(PAPER)-$(RELEASE).tgz: ps
218224
(cd paper-$(PAPER); $(MAKE) README)
219225
(cd paper-$(PAPER); tar cf - *.ps README) | gzip -9 >$@
220226

227+
postscript-$(PAPER)-$(RELEASE).zip: ps
228+
(cd paper-$(PAPER); $(MAKE) README)
229+
(cd paper-$(PAPER); zip -9 ../$@ *.ps README)
230+
221231
html-$(RELEASE).tgz: html
222232
(cd $(HTMLDIR); tar cf - *index.html ???/*.css ???/*.html */*.gif) \
223233
| gzip -9 >$@
224234

235+
html-$(RELEASE).zip: html
236+
(cd $(HTMLDIR); zip -9 ../$@ *index.html ???/*.css ???/*.html */*.gif)
237+
225238
# convenience targets:
226239

227240
tarhtml: html-$(RELEASE).tgz
@@ -232,6 +245,13 @@ tarlatex: latex-$(RELEASE).tgz
232245

233246
tarballs: tarpdf tarps tarhtml tarinfo tarlatex
234247

248+
ziphtml: html-$(RELEASE).zip
249+
zipps: postscript-$(PAPER)-$(RELEASE).zip
250+
zippdf: pdf-$(PAPER)-$(RELEASE).zip
251+
ziplatex: latex-$(RELEASE).zip
252+
253+
zips: zippdf zipps ziphtml ziplatex
254+
235255

236256
# Housekeeping targets
237257

@@ -251,7 +271,8 @@ clobber:
251271
(cd $(HTMLDIR); $(MAKE) clobber)
252272
rm -f html-$(RELEASE).tgz info-$(RELEASE).tgz
253273
rm -f pdf-$(RELEASE).tgz postscript-$(RELEASE).tgz
254-
rm -f latex-$(RELEASE).tgz
274+
rm -f latex-$(RELEASE).tgz html-$(RELEASE).zip
275+
rm -f pdf-$(RELEASE).zip postscript-$(RELEASE).zip
255276
(cd paper-$(PAPER); $(MAKE) clobber)
256277
(cd $(HTMLDIR); $(MAKE) clobber)
257278
(cd $(INFODIR); $(MAKE) clobber)

0 commit comments

Comments
 (0)