-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathMakefile.in
502 lines (447 loc) · 17.1 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
#
# ${R_HOME}/doc/manual/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../..
subdir = doc/manual
include $(top_builddir)/Makeconf
SORT = sort # to match Windows
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
SOURCES_TEXI = R-FAQ.texi R-admin.texi R-data.texi R-exts.texi \
R-intro.texi R-ints.texi R-lang.texi
DISTFILES = \
README \
Makefile.in Makefile.win \
R-defs.texi dir epsf.tex pdfcolor.tex \
$(SOURCES_TEXI) rw-FAQ.texi \
resources.texi \
R-exts.R R-exts.c R-intro.R \
refman.top refman.bot \
ISBN Rman.css quot.sed \
texi2epub.sh texi2html.sh
SUBDIRS_WITH_NO_BUILD = images
OBJECTS_HTML = $(SOURCES_TEXI:.texi=.html)
OBJECTS_INFO = $(SOURCES_TEXI:.texi=.info)
OBJECTS_PDF = $(SOURCES_TEXI:.texi=.pdf)
OBJECTS_EPUB = $(SOURCES_TEXI:.texi=.epub)
OBJECTS_MOBI = $(SOURCES_TEXI:.texi=.mobi)
MAKEINDEX = @MAKEINDEX@
TEXI2ANY = @TEXI2ANY@
TEXI2ANY_VERSION_MAJ = @TEXI2ANY_VERSION_MAJ@
TEXI2ANY_VERSION_MIN = @TEXI2ANY_VERSION_MIN@
TEXI2ANY_HTML_OPTS = --html --no-split --css-include=$(srcdir)/Rman.css
TEXI2ANY_TEXT_OPTS = --number-sections --fill-column=76 --no-split --no-headers
TEXI2HTML = $(TEXI2ANY) $(TEXI2ANY_HTML_OPTS)
TEXI2TEXT = $(TEXI2ANY) $(TEXI2ANY_TEXT_OPTS)
## some broken versions of texi2dvi need C collation.
TEXI2DVI = LC_COLLATE=C @TEXI2DVI@
TEXI2PDF = $(TEXI2DVI) --pdf
PDFLATEX = @PDFLATEX@
## These are used to check if there is a non-empty path to the
## texi2dvi script, and as it uses pdftex if that was detected.
TEXI2DVI0 = @TEXI2DVI@
PDFTEX = @PDFTEX@
R_ZIPCMD = @R_ZIPCMD@
R_UNZIPCMD = @R_UNZIPCMD@
BATCHPDFLATEX = $(PDFLATEX) -interaction=nonstopmode
## support for ebook conversion.
## ebook-convert is part of 'calibre'
## (http://calibre-ebook.com/download, or Debian/Fedora/... packages)
EBOOK = ebook-convert
## or on OS X
## EBOOK = /Applications/calibre.app/Contents/MacOS/ebook-convert
EBOOK_OPTS = --language en --publisher "R Core Team"
datarootdir = @datarootdir@
infodir = @infodir@
INSTALL_INFO = @INSTALL_INFO@
R_PAPERSIZE = @R_PAPERSIZE@
R_RD4PDF = @R_RD4PDF@
texinputs_BASE = $(R_PKGS_BASE:=-pkg.tex)
texinputs_RECOMMENDED = $(R_PKGS_RECOMMENDED:=-pkg.tex)
refman_DEPENDENCIES = version.tex $(top_srcdir)/share/texmf/tex/latex/Rd.sty
fullrefman_TEXINPUTS = $(texinputs_BASE) @USE_RECOMMENDED_PACKAGES_TRUE@ $(texinputs_RECOMMENDED)
SVN_REV = $(top_builddir)/SVN-REVISION
texiincludes = version.texi $(srcdir)/R-defs.texi
.SUFFIXES:
.SUFFIXES: .html .info .texi .pdf .epub .mobi
all: Makefile R docs
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
R: Makefile
docs: html
.texi.html:
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "'texi2any' v6.1 or later needed to make HTML docs but missing on your system." ; \
$(ECHO) "file $@ will be missing and linked from CRAN"; \
else \
$(ECHO) "creating doc/manual/$@"; \
$(TEXI2HTML) -I$(srcdir) \
-c TOP_NODE_UP_URL=../html/index.html \
`test $(TEXI2ANY_VERSION_MAJ) -ge 7 && $(ECHO) -c HTMLXREF_MODE=none -c CHECK_HTMLXREF=0` \
$< -o [email protected] || exit 1; \
SED="$(SED)" $(SHELL) $(srcdir)/texi2html.sh \
$(TEXI2ANY_VERSION_MAJ) $(TEXI2ANY_VERSION_MIN) $@; \
rm -f [email protected]; \
fi
.texi.info:
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "ERROR: 'texi2any' v6.1 or later needed but missing on your system."; \
exit 1; \
fi
$(TEXI2ANY) --enable-encoding -I$(srcdir) $<
.texi.pdf:
@if test -z "$(TEXI2DVI0)"; then \
$(ECHO) "ERROR: 'texi2dvi' needed but missing on your system."; \
exit 1; \
fi
@if test -z "$(PDFTEX)"; then \
$(ECHO) "ERROR: 'pdftex' needed but missing on your system."; \
exit 1; \
fi
TEXINPUTS="$(srcdir):$$TEXINPUTS" $(TEXI2PDF) $<
## It seems ebook-convert converts the directory,
## so we populate a temporary dir.
.texi.epub:
@$(ECHO) "creating doc/manual/$@"
@if test $(TEXI2ANY_VERSION_MAJ) -lt 7; then \
mkdir -p tmp; \
$(TEXI2HTML) --no-headers -I$(srcdir) $< -o [email protected]; \
$(SED) -f $(srcdir)/quot.sed [email protected] > tmp/$*.html; \
rm -f [email protected]; \
$(EBOOK) tmp/$*.html $@ $(EBOOK_OPTS) --authors "R Core Team"; \
rm -R tmp; \
else \
SED="$(SED)" TEXI2ANY="$(TEXI2ANY)" \
ZIPCMD="$(R_ZIPCMD)" UNZIPCMD="$(R_UNZIPCMD)" \
$(SHELL) $(srcdir)/texi2epub.sh \
$(TEXI2ANY_VERSION_MAJ) $(TEXI2ANY_VERSION_MIN) $< $@; \
fi
.texi.mobi:
@mkdir -p tmp
@$(TEXI2HTML) --no-headers -I$(srcdir) $< -o [email protected]
@$(SED) -f $(srcdir)/quot.sed [email protected] > tmp/$*.html
@rm -f [email protected]
$(EBOOK) tmp/$*.html $@ $(EBOOK_OPTS) --authors "R Core Team"
@rm -R tmp
R-intro.epub: R-intro.texi
@$(ECHO) "creating doc/manual/$@"
@if test $(TEXI2ANY_VERSION_MAJ) -lt 7; then \
mkdir -p tmp; \
cp -R images tmp; \
$(TEXI2HTML) --no-headers -I$(srcdir) $< -o [email protected]; \
$(SED) -f $(srcdir)/quot.sed [email protected] > tmp/$*.html; \
rm -f [email protected]; \
$(EBOOK) tmp/$*.html $@ $(EBOOK_OPTS) --authors \
"W.N. Venables, D.M. Smith, R Core Team"; \
rm -R tmp; \
else \
SED="$(SED)" TEXI2ANY="$(TEXI2ANY)" \
ZIPCMD="$(R_ZIPCMD)" UNZIPCMD="$(R_UNZIPCMD)" \
$(SHELL) $(srcdir)/texi2epub.sh \
$(TEXI2ANY_VERSION_MAJ) $(TEXI2ANY_VERSION_MIN) $< $@; \
fi
R-intro.mobi: R-intro.texi
@mkdir -p tmp
@cp -r images tmp
@$(TEXI2HTML) --no-headers -I$(srcdir) $< -o [email protected]
@$(SED) -f $(srcdir)/quot.sed [email protected] > tmp/$*.html
@rm -f [email protected]
$(EBOOK) tmp/$*.html $@ $(EBOOK_OPTS) --authors \
"W.N. Venables, D.M. Smith, R Core Team"
@rm -R tmp
version.tex: Makefile $(top_srcdir)/VERSION $(SVN_REV)
@$(ECHO) "creating $(subdir)/$@"
@(v=`cat $(top_srcdir)/VERSION`; \
v="$${v} (`sed -e 1d -e 's/^Last Changed Date: //' $(SVN_REV)`)"; \
$(ECHO) "$${v}") > $@
R_EXE = $(top_builddir)/bin/R --vanilla --no-echo
$(texinputs_BASE): FORCE
@(pkg=`basename $@ -pkg.tex`; \
if $(R_EXE) -e \
"tools:::.Rdnewer(\"$(top_srcdir)/src/library/$${pkg}\", \"$@\")"; then \
$(ECHO) "collecting LaTeX docs for package '$${pkg}' ..."; \
$(ECHO) "tools:::.pkg2tex(\"$(top_builddir)/library/$${pkg}\")" \
| LC_ALL=C $(R_EXE) || rm $* ; \
fi)
FORCE:
$(texinputs_RECOMMENDED): FORCE
@(pkg=`basename $@ -pkg.tex`; \
if find $@ -newer $(top_builddir)/library/$${pkg}/DESCRIPTION \
-print 2> /dev/null | grep $@ > /dev/null; then :; else \
$(ECHO) "collecting LaTeX docs for package '$${pkg}' ..."; \
$(ECHO) "tools:::.pkg2tex(\"$(top_builddir)/library/$${pkg}\")" \
| LC_ALL=C $(R_EXE) || rm $* ; \
fi)
version.texi: Makefile $(top_srcdir)/VERSION $(SVN_REV)
@$(ECHO) "creating $(subdir)/$@"
@(vv=`sed 's/ *(.*//' $(top_srcdir)/VERSION`;v=`echo $${vv}| sed 's/\([^ ]*\).*/\1/'`; \
$(ECHO) "@set VERSIONno $${v}" > $@; \
v="$${vv} (`sed -e 1d -e 's/^Last Changed Date: //' $(SVN_REV)`)"; \
$(ECHO) "@set VERSION $${v}" >> $@; \
rwv=`$(R_EXE) -f $(top_srcdir)/src/gnuwin32/fixed/rwver.R`; \
$(ECHO) "@set RWVERSION $${rwv}" >> $@; \
rwtv=`$(ECHO) $${rwv} | sed -e 's/\.[^.]*$$//'`; \
$(ECHO) "@set RWTVERSION $${rwtv}" >> $@ )
@if test "$(R_PAPERSIZE)" = "a4"; then \
$(ECHO) "@afourpaper" >> $@ ; \
fi
## https://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML-Xref-Configuration.html
## EPUB cannot link local files and the system htmlxref.cnf lacks R-FAQ
## (for the HTML manuals we use an override to produce only local xrefs)
htmlxref.cnf:
@($(ECHO) "R = https://CRAN.R-project.org/doc/manuals"; \
for f in $(OBJECTS_HTML); do $(ECHO) $${f%.html} mono '$${R}'/$${f}; done) > $@
html: $(OBJECTS_HTML)
@(cd ../html; $(MAKE) index.html)
$(OBJECTS_HTML): htmlxref.cnf $(srcdir)/Rman.css $(srcdir)/texi2html.sh
R-admin.html: $(texiincludes)
R-data.html: $(texiincludes)
R-exts.html: $(texiincludes)
R-intro.html: stamp-images-html $(texiincludes)
R-ints.html: $(texiincludes)
R-lang.html: $(texiincludes)
R-FAQ.html: $(srcdir)/R-defs.texi
ebooks: epub mobi
epub: $(OBJECTS_EPUB)
mobi: $(OBJECTS_MOBI)
$(OBJECTS_EPUB): htmlxref.cnf $(srcdir)/texi2epub.sh
$(OBJECTS_MOBI): htmlxref.cnf
info: $(OBJECTS_INFO)
R-admin.info: $(texiincludes)
R-data.info: $(texiincludes)
R-exts.info: $(texiincludes)
R-intro.info: $(texiincludes)
R-ints.info: $(texiincludes)
R-lang.info: $(texiincludes)
R-FAQ.info: $(srcdir)/R-defs.texi
pdf: fullrefman.pdf $(OBJECTS_PDF)
refman.pdf: $(refman_DEPENDENCIES) $(texinputs_BASE)
@if test -z "$(PDFLATEX)"; then \
$(ECHO) "ERROR: 'pdflatex' needed but missing on your system."; \
exit 1; \
fi
@$(ECHO) "PDF/LaTeX documentation: reference index ..."
@rm -f *.aux refman.toc refman.ind
## <NOTE>
## We do not make sure $(ECHO) does not interpret backslash escapes.
## Could be trouble ...
@(opt="$(R_PAPERSIZE)paper"; \
$(ECHO) "\\documentclass[$${opt}]{book}"; \
opt="$(R_RD4PDF)"; \
$(ECHO) "\\usepackage[$${opt}]{Rd}"; \
$(ECHO) "\\usepackage[utf8]{inputenc}"; \
cat $(srcdir)/refman.top; \
texinputs=`(for f in $(texinputs_BASE); \
do $(ECHO) $${f}; done) | LC_COLLATE=C $(SORT)`; \
for f in $${texinputs}; do $(ECHO) "\\input{$${f}}"; done; \
cat $(srcdir)/refman.bot) > refman.tex
## </NOTE>
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) refman.tex
@-$(MAKEINDEX) refman
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) refman.tex
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) refman.tex
fullrefman.pdf: $(refman_DEPENDENCIES) $(fullrefman_TEXINPUTS)
@if test -z "$(PDFLATEX)"; then \
$(ECHO) "ERROR: 'pdflatex' needed but missing on your system."; \
exit 1; \
fi
@$(ECHO) "PDF/LaTeX documentation: full reference index ..."
@rm -f *.aux fullrefman.toc fullrefman.ind
@(opt="$(R_PAPERSIZE)paper"; \
$(ECHO) "\\documentclass[$${opt}]{book}"; \
opt="$(R_RD4PDF)"; \
$(ECHO) "\\usepackage[$${opt}]{Rd}"; \
$(ECHO) "\\usepackage[utf8]{inputenc}"; \
cat $(srcdir)/refman.top; \
if test -z "@USE_RECOMMENDED_PACKAGES_TRUE@"; then \
$(ECHO) "\\part{}"; \
texinputs=`(for f in $(texinputs_BASE); \
do $(ECHO) $${f}; done) | LC_COLLATE=C $(SORT)`; \
for f in $${texinputs}; do $(ECHO) "\\input{$${f}}"; done; \
$(ECHO) "\\part{}"; \
texinputs=`(for f in $(texinputs_RECOMMENDED); \
do $(ECHO) $${f}; done) | LC_COLLATE=C $(SORT)`; \
for f in $${texinputs}; do $(ECHO) "\\input{$${f}}"; done; \
else \
texinputs=`(for f in $(texinputs_BASE); \
do $(ECHO) $${f}; done) | LC_COLLATE=C $(SORT)`; \
for f in $${texinputs}; do $(ECHO) "\\input{$${f}}"; done; \
fi; \
cat $(srcdir)/refman.bot) > fullrefman.tex
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) fullrefman.tex
@-$(MAKEINDEX) fullrefman
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) fullrefman.tex
@TEXINPUTS="$(top_srcdir)/share/texmf/tex/latex:$$TEXINPUTS" \
$(BATCHPDFLATEX) fullrefman.tex
R-admin.pdf: $(texiincludes)
R-data.pdf: $(texiincludes)
R-exts.pdf: $(texiincludes)
R-intro.pdf: stamp-images-pdf $(texiincludes)
R-ints.pdf: $(texiincludes)
stamp-images-pdf:
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
$(MAKE) DESTDIR="" rdocdir=$(top_builddir)/doc install-images-pdf; \
fi
@touch $@
R-lang.pdf: $(texiincludes)
R-FAQ.pdf: $(srcdir)/R-defs.texi
## compact whatever manuals have been built -- needs qpdf and ghostscript
compact-pdf:
@echo 'compacting PDF manuals in doc/manual'
@../../bin$(R_ARCH)/Rscript -e 'tools::compactPDF(".", gs_quality="ebook")'
install: install-message installdirs install-html install-images-html
install-message:
@$(ECHO) "installing $(subdir) ..."
installdirs:
@$(MKINSTALLDIRS) "$(DESTDIR)$(rdocdir)/manual"
install-strip: install
install-images-html: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(rdocdir)/manual/images"
@-for f in $(srcdir)/images/*.png; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rdocdir)/manual/images"; \
done
stamp-images-html:
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
$(MAKE) DESTDIR="" rdocdir=$(top_builddir)/doc install-images-html; \
fi
@touch $@
install-images-pdf: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(rdocdir)/manual/images"
@-for f in $(srcdir)/images/*.pdf; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rdocdir)/manual/images"; \
done
## if there is no makeinfo >= 6.1 then there are no html pages
install-html: installdirs
@for f in $(OBJECTS_HTML); do \
if test -f $${f} ; then \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rdocdir)/manual"; \
fi \
done
install-info: info $(DESTDIR)$(infodir)/dir
@$(ECHO) "installing R info pages ..."
@for f in $(OBJECTS_INFO:.info=.info*); do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(infodir)"; \
$(R_GZIPCMD) -f "$(DESTDIR)$(infodir)/$${f}"; \
done
@$(ECHO) "updating '$(infodir)/dir' ..."
@for f in $(OBJECTS_INFO); do \
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$${f} \
|| $(ECHO) "you need to adjust $(infodir)/dir manually"; \
done
install-pdf: pdf installdirs
@$(ECHO) "installing R manuals in PDF format ..."
@for f in *.pdf; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rdocdir)/manual"; \
done
$(DESTDIR)$(infodir)/dir:
@$(MKINSTALLDIRS) "$(DESTDIR)$(infodir)"
$(INSTALL_DATA) "$(srcdir)/dir" "$(DESTDIR)$(infodir)"
uninstall:
@if test -f "$(DESTDIR)$(infodir)/R-data.info" \
|| test -f "$(DESTDIR)$(infodir)/R-data.info.gz"; then \
$(MAKE) uninstall-info; \
fi
@$(ECHO) "uninstalling $(subdir) ..."
@rm -Rf "$(DESTDIR)$(rdocdir)/manual"
uninstall-info:
@$(ECHO) "uninstalling R info pages ..."
@for f in $(OBJECTS_INFO); do \
$(INSTALL_INFO) --remove --info-dir=$(DESTDIR)$(infodir) $${f} \
|| $(ECHO) "you need to adjust $(infodir)/dir manually"; \
done
@for f in $(OBJECTS_INFO:.info=.info*); do \
rm -f "$(DESTDIR)$(infodir)/$${f}" "$(DESTDIR)$(infodir)/$${f}.gz" ; \
done
uninstall-pdf:
@$(ECHO) "uninstalling R manuals in PDF format ..."
@-rm -f "$(DESTDIR)$(rdocdir)/manual"/*.pdf
mostlyclean: clean
clean:
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -Rf $(INSTFILES) images; \
fi
-@rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.html *.info* \
*.ky *.kys *.log *.out *.pdf *.pg *.pgs *.ps *.ps-2 *.tmp \
*.toc *.tp *.vr *.vrs \
R-admin.en* R-exts.ae* R-exts.ap* R-exts.em* R-exts.for* \
*-pkg.tex refman.i?? refman.tex fullrefman.i?? fullrefman.tex \
version.tex version.texi htmlxref.cnf
-@rm -f stamp-*
-@rm -f *.epub *.mobi rw-FAQ rw-FAQ.html
distclean: clean
-@rm -f Makefile
maintainer-clean: distclean
distdir: $(DISTFILES)
@for f in $(DISTFILES); do \
test -f $(distdir)/$${f} \
|| ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
|| cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
done
@for d in $(SUBDIRS_WITH_NO_BUILD); do \
((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "ERROR: 'texi2any' v6.1 or later needed but missing on your system."; \
exit 1; \
fi
# $(distdir)/doc/html has already been created
# NB: the pre-built R-admin.html is referenced from INSTALL and configure
@$(TEXI2HTML) --no-headers --number-sections \
$(srcdir)/R-admin.texi -I$(srcdir) \
-o $(distdir)/../html/R-admin.html
## referenced from the top-level README
front-matter: ${top_builddir}/doc/RESOURCES ${top_builddir}/doc/FAQ
${top_builddir}/doc/RESOURCES: $(srcdir)/resources.texi
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "'texi2any' v6.1 or later needed to make HTML docs but missing on your system." ; \
$(ECHO) "file doc/RESOURCES will be missing"; \
else \
$(ECHO) "creating RESOURCES"; \
$(TEXI2TEXT) $(srcdir)/resources.texi -o $@; \
fi
${top_builddir}/doc/FAQ: $(srcdir)/R-FAQ.texi $(srcdir)/R-defs.texi
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "'texi2any' v6.1 or later needed to make HTML docs but missing on your system." ; \
$(ECHO) "file doc/FAQ will be missing"; \
else \
$(ECHO) "creating FAQ"; \
$(TEXI2TEXT) $(srcdir)/R-FAQ.texi -o $@; \
fi
html-non-svn: ../html/resources.html
../html/resources.html: $(srcdir)/resources.texi
@if test -z "$(TEXI2ANY)"; then \
$(ECHO) "'texi2any' v6.1 or later needed to make HTML docs but missing on your system." ; \
$(ECHO) "file doc/html/resources.html will be missing"; \
else \
$(ECHO) "creating doc/html/resources.html"; \
$(TEXI2ANY) --html --no-split --no-headers \
--css-include=$(top_srcdir)/doc/html/R.css $(srcdir)/resources.texi -o $@; \
fi
## Added here to allow testing rw-FAQ changes on Unix.
Windows-FAQ: rw-FAQ rw-FAQ.html rw-FAQ.pdf
RVER = `cut -d' ' -f1 $(top_srcdir)/VERSION | $(SED) -n 1p`
RPREFIX = `../../bin$(R_ARCH)/Rscript $(top_srcdir)/src/gnuwin32/fixed/rwver.R`
SEDVER = -e s/@RVER@/$(RVER)/g -e s/@RWVER@/$(RPREFIX)/g
rw-FAQ.html: rw-FAQ.texi $(top_srcdir)/VERSION $(srcdir)/Rman.css $(srcdir)/R-defs.texi
@echo "making rw-FAQ.html"
@$(SED) $(SEDVER) $< > tmp_html.texi
@$(TEXI2ANY) -I$(srcdir) --no-split --html --no-headers --number-sections --css-include=$(srcdir)/Rman.css -o $@ tmp_html.texi
@rm -f tmp_html.texi
rw-FAQ: rw-FAQ.texi $(top_srcdir)/VERSION $(srcdir)/R-defs.texi
@echo "making rw-FAQ"
@$(SED) $(SEDVER) $< > tmp_plain.texi
@$(TEXI2ANY) -I$(srcdir) --no-headers --number-sections -o $@ tmp_plain.texi
@rm -f tmp_plain.texi
rw-FAQ.pdf: rw-FAQ.texi $(top_srcdir)/VERSION $(srcdir)/R-defs.texi
@$(SED) $(SEDVER) $< > tmp_pdf.texi
@TEXINPUTS="$(srcdir):$$TEXINPUTS" $(TEXI2PDF) tmp_pdf.texi
@mv tmp_pdf.pdf $@
@rm tmp_pdf.*