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

Skip to content

Commit 95810e4

Browse files
committed
Removed tarps2, tardvi targets based on comments from Guido.
Added -9 option to gzip. This doesn't save much space, but it's "free" and appreaciated by those with slow modems. (With these tarballs, that means "those with modems"...!) Remove the two tarballs in the clean target.
1 parent 657cb14 commit 95810e4

1 file changed

Lines changed: 5 additions & 32 deletions

File tree

Doc/Makefile

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ DESTDIR= /usr/local
5858
LIBDESTDIR= $DESTDIR/lib
5959
LIBDEST= $LIBDESTDIR/python
6060
DOCDESTDIR= $LIBDEST/doc
61-
TARBALLDEST= .
6261

6362
# This is only used for .info generation:
6463
EMACS= emacs
@@ -74,13 +73,7 @@ VERSION=1.5
7473
all: all-ps
7574

7675
all-dvi: tut.dvi lib.dvi ext.dvi api.dvi
77-
all-ps:
78-
./texoption.sh -d openright
79-
$(MAKE) tut.ps lib.ps ext.ps api.ps
80-
81-
all-ps2:
82-
./texoption.sh openright
83-
$(MAKE) tut.ps lib.ps ext.ps api.ps
76+
all-ps: tut.ps lib.ps ext.ps api.ps
8477

8578
# Individual document fake targets
8679
tut: tut.ps
@@ -252,35 +245,14 @@ l2hapi: api.dvi myformat.perl
252245
tarhtml:
253246
@echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
254247
tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \
255-
| gzip >html-$(VERSION).tar.gz
256-
if [ "$(TARBALLDEST)" != "." ] ; then \
257-
mv html-$(VERSION).tar.gz $(TARBALLDEST) ; else true ; fi
248+
| gzip -9 >html-$(VERSION).tar.gz
258249

259250
tarps: all-ps
260251
cp ref/ref.ps .
261-
tar cf - ???.ps | gzip >postscript-$(VERSION).tar.gz
252+
tar cf - ???.ps | gzip -9 >postscript-$(VERSION).tar.gz
262253
rm ref.ps
263-
if [ "$(TARBALLDEST)" != "." ] ; then \
264-
mv postscript-$(VERSION).tar.gz $(TARBALLDEST) ; else true ; fi
265-
266-
tarps2: all-ps2
267-
cp ref/ref.ps .
268-
tar cf - ???.ps | gzip >postscript-2sided-$(VERSION).tar.gz
269-
rm ref.ps
270-
if [ "$(TARBALLDEST)" != "." ] ; then \
271-
mv postscript-2sided-$(VERSION).tar.gz $(TARBALLDEST) ; \
272-
else true ; fi
273-
274-
tardvi:
275-
./texoption.sh -d openright
276-
$(MAKE) all-dvi
277-
tar cf - ???.dvi | gzip >dvi-$(VERSION).tar.gz
278-
if [ "$(TARBALLDEST)" != "." ] ; then \
279-
mv dvi-$(VERSION).tar.gz $(TARBALLDEST) ; else true ; fi
280254

281-
# This can take a long time, since the documents can get formatter twice by
282-
# LaTeX, once with openright and once without.
283-
tarballs: tardvi tarps tarps2 tarhtml
255+
tarballs: tarps tarhtml
284256

285257

286258
# Housekeeping targets
@@ -292,6 +264,7 @@ clean: l2hclean
292264
rm -f @* *~ *.aux *.idx *.ilg *.ind *.log *.toc *.blg *.bbl *.pyc
293265
rm -f *.texi *.info*
294266
rm -f *.bak *.orig
267+
rm -f html-$(VERSION).tar.gz postscript-$(VERSION).tar.gz
295268

296269
l2hclean:
297270
rm -rf api ext lib tut

0 commit comments

Comments
 (0)