Rev 28601 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#-*-Makefile-*-## ${R_HOME}/doc/manual/Makefile.wininclude ../../src/gnuwin32/MkRulesinclude ../../share/make/vars.mksrcdir = .top_srcdir = ../..subdir = doc/manualSOURCES_TEXI = R-FAQ.texi R-admin.texi R-data.texi R-exts.texi \R-intro.texi R-lang.texiOBJECTS_DVI = $(SOURCES_TEXI:.texi=.dvi)OBJECTS_HTML = $(SOURCES_TEXI:.texi=.html)OBJECTS_INFO = $(SOURCES_TEXI:.texi=.info)OBJECTS_PDF = $(SOURCES_TEXI:.texi=.pdf)MAKEINFO = makeinfoPDFLATEX = pdflatexPDFTEX = TEXINPUTS="../../share/texmf;$$TEXINPUTS" pdftexLATEX = latexTEX = TEXINPUTS="../../share/texmf;$$TEXINPUTS" texMAKEINDEX = makeindexTEXINDEX = texindexifneq ($(strip $(BUILD)),CROSS)RHOME=$(shell ../../src/gnuwin32/Rpwd.exe ../..)elseRHOME=$(shell perl ../../src/gnuwin32/pwd.pl ../..)endifR_PAPERSIZE = a4R_RD4DVI = ae# set the next to `ae' to omit the hyperlinksR_RD4PDF = ae,hyperR_PKGS_refman = base graphics grid methods stats tools utilsrefman_TEXINPUTS = $(R_PKGS_refman:=-pkg.tex)refman_DEPENDENCIES = version.tex $(top_srcdir)/share/texmf/Rd.stytexinputs_BASE = $(R_PKGS_BASE:=-pkg.tex)texinputs_RECOMMENDED = $(R_PKGS_RECOMMENDED:=-pkg.tex)fullrefman_TEXINPUTS = $(texinputs_BASE) $(texinputs_RECOMMENDED)texiincludes = version.texi R-defs.texi.SUFFIXES:.SUFFIXES: .dvi .html .info .texi .pdfall: pdf.texi.dvi:$(TEX) $<$(TEX) $<.texi.html:$(MAKEINFO) -D UseExternalXrefs --no-split --html $< -o $@ || touch $@.texi.info:$(MAKEINFO) -D UseExternalXrefs $<.texi.pdf:$(PDFTEX) $<$(PDFTEX) $<dvi: refman.dvi $(OBJECTS_DVI)refman.dvi: $(refman_TEXINPUTS) $(refman_DEPENDENCIES) \refman.top refman.bot@echo "DVI/LaTeX documentation: reference index ..."@$(RM) -f *.aux refman.toc refman.ind@(opt="$${R_PAPERSIZE:-$(R_PAPERSIZE)}paper"; \echo "\\documentclass[$${opt}]{book}"; \opt="$${R_RD4DVI:-$(R_RD4DVI)}"; \echo "\\usepackage[$${opt}]{Rd}"; \cat refman.top; \for f in $(refman_TEXINPUTS); do echo "\\input{$${f}}"; done; \cat refman.bot) > refman.tex@$(RM) -f *.aux refman.toc refman.indifeq ($(strip $(BUILD)),CROSS)@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{refman.tex}'@-$(MAKEINDEX) refman@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{refman.tex}'else@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{refman.tex}'@-$(MAKEINDEX) refman@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{refman.tex}'endiffullrefman.dvi: $(fullrefman_TEXINPUTS) $(refman_DEPENDENCIES) \refman.top refman.bot@echo "DVI/LaTeX documentation: reference index ..."@$(RM) -f *.aux refman.toc refman.ind@(opt="$${R_PAPERSIZE:-$(R_PAPERSIZE)}paper"; \echo "\\documentclass[$${opt}]{book}"; \opt="$${R_RD4DVI:-$(R_RD4DVI)}"; \echo "\\usepackage[$${opt}]{Rd}"; \cat refman.top; \texinputs=`(for f in $(refman_TEXINPUTS); \do echo $${f}; done) | LC_COLLATE=C sort`; \for f in $${texinputs}; do echo "\\input{$${f}}"; done; \echo "\\part{}"; \texinputs=`(for f in $(fullrefman_TEXINPUTS); \do echo $${f}; done) | LC_COLLATE=C sort`; \for f in $(refman_TEXINPUTS); do \texinputs=`echo "$${texinputs}" | sed "s/$${f}//"`; \done; \for f in $${texinputs}; do echo "\\input{$${f}}"; done; \cat $(srcdir)/refman.bot) > fullrefman.tex@$(RM) -f *.aux fullrefman.toc fullrefman.indifeq ($(strip $(BUILD)),CROSS)@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{fullrefman.tex}'@-$(MAKEINDEX) fullrefman@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{fullrefman.tex}'else@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{fullrefman.tex}'@-$(MAKEINDEX) fullrefman@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(LATEX) '\nonstopmode\input{fullrefman.tex}'endifR-admin.dvi: R-admin.texi $(texiincludes)TEXINPUTS="../../share/texmf:$$TEXINPUTS" $(TEX) R-admin.texiTEXINPUTS="../../share/texmf:$$TEXINPUTS" $(TEXINDEX) R-admin.cp R-admin.fn R-admin.vrTEXINPUTS="../../share/texmf:$$TEXINPUTS" $(TEX) R-admin.texiTEXINPUTS="../../share/texmf:$$TEXINPUTS" $(TEX) R-admin.texiR-data.dvi: R-data.texi $(texiincludes)$(TEX) R-data.texi$(TEXINDEX) R-data.cp R-data.fn R-data.vr$(TEX) R-data.texi$(TEX) R-data.texiR-exts.dvi: R-exts.texi $(texiincludes)$(TEX) R-exts.texi$(TEXINDEX) R-exts.cp R-exts.fn R-exts.vr$(TEX) R-exts.texi$(TEX) R-exts.texiR-intro.dvi: R-intro.texi $(texiincludes)$(TEX) R-intro.texi$(TEXINDEX) R-intro.cp R-intro.fn R-intro.vr$(TEX) R-intro.texi$(TEX) R-intro.texihtml: $(OBJECTS_HTML)R-admin.html: $(texiincludes)R-data.html: $(texiincludes)R-exts.html: $(texiincludes)R-intro.html: $(texiincludes)R-lang.html: $(texiincludes)info: $(OBJECTS_INFO)R-admin.info: $(texiincludes)R-data.info: $(texiincludes)R-exts.info: $(texiincludes)R-intro.info: $(texiincludes)R-lang.info: $(texiincludes)pdf: refman.pdf $(OBJECTS_PDF)refman.pdf: $(refman_TEXINPUTS) $(refman_DEPENDENCIES) \refman.top refman.bot@echo " PDF/LaTeX documentation: reference index ..."@(opt="$${R_PAPERSIZE:-$(R_PAPERSIZE)}paper"; \echo "\\documentclass[$${opt}]{book}"; \opt="$${R_RD4PDF:-$(R_RD4PDF)}"; \echo "\\usepackage[$${opt}]{Rd}"; \cat refman.top; \for f in $(refman_TEXINPUTS); do echo "\\input{$${f}}"; done; \cat refman.bot) > refman.tex@$(RM) -f *.aux refman.toc refman.indifeq ($(strip $(BUILD)),CROSS)@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@$(MAKEINDEX) refman@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'else@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@$(MAKEINDEX) refman@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'endiffullrefman.pdf: $(fullrefman_TEXINPUTS) $(refman_DEPENDENCIES) \refman.top refman.bot@echo " PDF/LaTeX documentation: reference index ..."@(opt="$${R_PAPERSIZE:-$(R_PAPERSIZE)}paper"; \echo "\\documentclass[$${opt}]{book}"; \opt="$${R_RD4PDF:-$(R_RD4PDF)}"; \echo "\\usepackage[$${opt}]{Rd}"; \cat refman.top; \echo "\\part{}"; \texinputs=`(for f in $(refman_TEXINPUTS); \do echo $${f}; done) | LC_COLLATE=C sort`; \for f in $${texinputs}; do echo "\\input{$${f}}"; done; \echo "\\part{}"; \texinputs=`(for f in $(fullrefman_TEXINPUTS); \do echo $${f}; done) | LC_COLLATE=C sort`; \for f in $(refman_TEXINPUTS); do \texinputs=`echo "$${texinputs}" | sed "s/$${f}//"`; \done; \for f in $${texinputs}; do echo "\\input{$${f}}"; done; \cat refman.bot) > fullrefman.tex@$(RM) -f *.aux fullrefman.toc fullrefman.indifeq ($(strip $(BUILD)),CROSS)@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'@$(MAKEINDEX) fullrefman@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'@TEXINPUTS="../../share/texmf:$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'else@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'@$(MAKEINDEX) fullrefman@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'@TEXINPUTS="../../share/texmf;$$TEXINPUTS" \$(PDFLATEX) '\nonstopmode\input{fullrefman.tex}'endifversion.tex: $(top_srcdir)/VERSION@echo "creating $(subdir)/$@"@(v=`cat $(top_srcdir)/VERSION`; \v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \echo "$${v}") > $@# bundles such as VR are not unpacked in src/library directly%-pkg.tex: FORCE@echo "collecting LaTeX docs for package \`$*' ..."@if test -f "$(top_srcdir)/library/$*/latex/Rhelp.zip" ; then \PERL5LIB=$(RHOME)/share/perl perl ../../tools/pkg2tex.pl $*; \else \if test -d "$(top_srcdir)/src/library/$*" ; then \if perl ../../tools/Rdnewer.pl \"$(top_srcdir)/src/library/$*" "$@"; then \(cd ../../src/gnuwin32/help && $(MAKE) --no-print-directory RHOME=$(RHOME) latex-$*); \PERL5LIB=$(RHOME)/share/perl perl ../../tools/pkg2tex.pl $*; \fi \else \PERL5LIB=$(RHOME)/share/perl perl ../../tools/pkg2tex.pl $*; \fi \fiFORCE:R-admin.pdf: R-admin.texi $(texiincludes)$(PDFTEX) R-admin.texi$(TEXINDEX) R-admin.cp R-admin.fn R-admin.vr$(PDFTEX) R-admin.texi$(PDFTEX) R-admin.texiR-data.pdf: R-data.texi $(texiincludes)$(PDFTEX) R-data.texi$(TEXINDEX) R-data.cp R-data.fn R-data.vr$(PDFTEX) R-data.texi$(PDFTEX) R-data.texiR-exts.pdf: R-exts.texi $(texiincludes)$(PDFTEX) R-exts.texi$(TEXINDEX) R-exts.cp R-exts.fn R-exts.vr$(PDFTEX) R-exts.texi$(PDFTEX) R-exts.texiR-lang.pdf: R-lang.texi $(texiincludes)$(PDFTEX) R-lang.texi$(TEXINDEX) R-lang.cp R-lang.fn R-lang.vr$(PDFTEX) R-lang.texi$(PDFTEX) R-lang.texiR-intro.pdf: R-intro.texi $(texiincludes)$(PDFTEX) R-intro.texi$(TEXINDEX) R-intro.cp R-intro.fn R-intro.vr$(PDFTEX) R-intro.texi$(PDFTEX) R-intro.texiversion.texi: Makefile.win $(top_srcdir)/VERSION $(top_srcdir)/date-stamp@echo "creating $(subdir)/$@"@(v=`sed 's/\([^ ]*\).*/\1/' $(top_srcdir)/VERSION`; \echo "@set VERSIONno $${v}" > $@; \v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \echo "@set VERSION $${v}" >> $@; \rwv=$(shell perl $(top_srcdir)/src/gnuwin32/fixed/rwver.pl $(top_srcdir)/VERSION); \echo "@set RWVERSION $${rwv}" >> $@ )mostlyclean: cleanclean:@-rm -f *.aux *.toc *refman.i?? *.out *.log@-rm -f *.cp *.cps *.fn *.fns *.ky *.kys \*.out *.pg *.pgs *.tmp *.tp *.vr *.vrs \version.tex version.texi refman.tex fullrefman.tex *-pkg.texdistclean: clean@-rm -f *.pdf *.dvi *.info* *.htmlmaintainer-clean: distclean