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

Skip to content

Commit 9fab3aa

Browse files
committed
Move a bit closer to HTML generation without depending on the temp files
being in the current directory. Be more careful cleaning up. Correct an error in a comment. Add recent additions to the dependencies for lib.dvi.
1 parent 310094c commit 9fab3aa

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

Doc/Makefile

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
LATEX= TEXINPUTS=$(TEXINPUTS) latex
5050
PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
5151
TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
52-
DVIPS= dvips -f -N0
52+
DVIPS= dvips -N0
5353
DISTILL= distill
54+
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich
5455
MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
5556
L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
5657
L2HARGS=
@@ -117,7 +118,7 @@ tut-all: tut.dvi tut.pdf tut.ps l2htut
117118
.SUFFIXES: .dvi .ps .pdf .tex
118119

119120
.dvi.ps:
120-
$(DVIPS) $< >$@
121+
$(DVIPS) -o $@ $<
121122

122123
#.ps.pdf:
123124
# $(DISTILL) $<
@@ -172,7 +173,8 @@ LIBFILES = lib.tex \
172173
libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
173174
liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
174175
libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \
175-
libfileinput.tex libimaplib.tex libpoplib.tex
176+
libfileinput.tex libimaplib.tex libpoplib.tex libcalendar.tex \
177+
libpopen2.tex libbisect.tex
176178

177179
MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
178180
libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
@@ -226,7 +228,7 @@ python-lib.texi: lib1.texi tools/fix.el
226228

227229
python-lib.info: python-lib.texi
228230
$(MAKEINFO) --footnote-style end --fill-column 72 \
229-
--paragraph-indent 0 $<
231+
--paragraph-indent 0 $<
230232

231233
# this is needed to prevent a second set of info files from being generated,
232234
# at least when using GNU make
@@ -245,28 +247,28 @@ lib.texi: python-lib.texi
245247
# in the distribution to simplify the process of creating a
246248
# self-contained HTML distribution; for this purpose I have also added
247249
# a (trivial) index.html. Change the definition of $ICONSERVER in
248-
# .latex2html-init to use a different location for the icons directory.
250+
# perl/l2hinit.perl to use a different location for the icons directory.
249251

250252
l2h: l2hapi l2hext l2hlib l2htut
251253

252-
l2htut: tut.dvi $(COMMONPERL)
253-
$(L2H) $(L2HARGS) tut.tex
254-
(cd tut; ../tools/node2label.pl *.html)
254+
l2hapi: $(COMMONPERL)
255+
$(L2H) $(L2HARGS) api.tex
256+
(cd api; ../tools/node2label.pl *.html)
255257

256-
l2hext: ext.dvi $(COMMONPERL)
258+
l2hext: $(COMMONPERL)
257259
$(L2H) $(L2HARGS) ext.tex
258260
(cd ext; ../tools/node2label.pl *.html)
259261

260-
l2hlib: lib.dvi $(COMMONPERL)
261-
tools/fix_libaux.sed <lib.aux >lib1.aux
262-
mv lib1.aux lib.aux
262+
l2hlib: $(COMMONPERL)
263+
$(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
264+
mv lib1.aux `$(KPSEWHICH) lib.aux`
263265
if test -d lib ; then rm -f lib/*.html ; fi
264266
$(L2H) $(L2HARGS) lib.tex
265267
(cd lib; ../tools/node2label.pl *.html)
266268

267-
l2hapi: api.dvi $(COMMONPERL)
268-
$(L2H) $(L2HARGS) api.tex
269-
(cd api; ../tools/node2label.pl *.html)
269+
l2htut: $(COMMONPERL)
270+
$(L2H) $(L2HARGS) tut.tex
271+
(cd tut; ../tools/node2label.pl *.html)
270272

271273
# webchecker needs an extra flag to process the huge index from the libref
272274
webcheck:
@@ -279,16 +281,17 @@ lib-info-$(RELEASE).tar.gz: $(INFOFILES)
279281
tar cf - python-???.info* | gzip -9 >$@
280282

281283
latex-$(RELEASE).tar.gz:
282-
tools/mktarball.sh
284+
$(srcdir)/tools/mktarball.sh
283285

284286
# This snags a PDF version if available, but doesn't fail if not.
285287
pdf-$(RELEASE).tar.gz: $(PDFFILES)
286-
if test -f ref/ref.pdf ; then cp ref/ref.pdf . ; else true ; fi
288+
if test -f $(srcdir)/ref/ref.pdf ; then \
289+
cp $(srcdir)/ref/ref.pdf . ; else true ; fi
287290
tar cf - ???.pdf | gzip -9 >$@
288291
if test -f ref.pdf ; then rm ref.pdf ; else true ; fi
289292

290293
postscript-$(RELEASE).tar.gz: $(PSFILES) ref/ref.ps
291-
cp ref/ref.ps .
294+
cp $(srcdir)/ref/ref.ps .
292295
tar cf - ???.ps | gzip -9 >$@
293296
rm ref.ps
294297

@@ -327,7 +330,8 @@ l2hclean:
327330

328331
# Remove temporaries as well as final products
329332
clobber: clean l2hclean
330-
rm -f *.dvi *.pdf *.ps *.texi python-*.info python-*.info-[0-9]*
333+
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
334+
rm -f *.texi python-???.info python-???.info-[0-9]*
331335

332336
realclean: clobber
333337
distclean: clobber

0 commit comments

Comments
 (0)