Rev 11278 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#-*-Makefile-*-## ${R_HOME}/doc/manual/Makefile.winsrcdir = .top_srcdir = ../..subdir = doc/manualSOURCES_TEXI = R-FAQ.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 = pdftexLATEX = latexTEX = texMAKEINDEX = makeindexTEXINDEX = texindexRHOME=$(shell cd ../..; pwd)R_PKGS=base ctest eda lqs modreg mva nls splines stepfun tcltk tsR_PAPERSIZE = a4R_RD4DVI = ae# set the next to `ae' to omit the hyperlinksR_RD4PDF = ae,hyperpkgsrcs = $(R_PKGS:=-pkg.tex)texiincludes = version.texi R-defs.texi.SUFFIXES:.SUFFIXES: .dvi .html .info .texi .pdfall: pdfpkg2tex.pl: $(top_srcdir)/tools/pkg2tex.in@sed -e 1d $^ > $@Rdnewer.pl: $(top_srcdir)/tools/Rdnewer.in@sed -e 1d $^ > $@.texi.dvi:$(TEX) $<$(TEX) $<.texi.html:$(MAKEINFO) --html $< -o $@ || touch $@.texi.info:$(MAKEINFO) -D UseExternalXrefs $<.texi.pdf:$(PDFTEX) $<$(PDFTEX) $<dvi: refman.dvi $(OBJECTS_DVI)refman.dvi: $(pkgsrcs) version.tex Rd.sty 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 p in $(R_PKGS); do echo "\\input{$${p}-pkg.tex}"; done; \cat refman.bot) > refman.tex@$(LATEX) '\nonstopmode\input{refman.tex}'@-$(MAKEINDEX) refman@$(LATEX) '\nonstopmode\input{refman.tex}'R-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-data.html: $(texiincludes)R-exts.html: $(texiincludes)R-intro.html: $(texiincludes)R-lang.html: $(texiincludes)info: $(OBJECTS_INFO)R-data.info: $(texiincludes)R-exts.info: $(texiincludes)R-intro.info: $(texiincludes)R-lang.info: $(texiincludes)pdf: refman.pdf $(OBJECTS_PDF)refman.pdf: $(pkgsrcs) version.tex Rd.sty 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 p in $(R_PKGS); do echo "\\input{$${p}-pkg.tex}"; done; \cat refman.bot) > refman.tex@$(RM) -f *.aux refman.toc refman.ind@$(PDFLATEX) '\nonstopmode\input{refman.tex}'@$(MAKEINDEX) refman@$(PDFLATEX) '\nonstopmode\input{refman.tex}'@$(PDFLATEX) '\nonstopmode\input{refman.tex}'version.tex: ../../bin/Rterm.exe $(top_srcdir)/VERSION@echo "creating $(subdir)/$@"@(v=`cat $(top_srcdir)/VERSION`; \v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \echo "$${v}") > $@%-pkg.tex: FORCE Rdnewer.pl pkg2tex.pl@if perl Rdnewer.pl \"$(top_srcdir)/src/library/$*" "$@"; then \echo "collecting LaTeX docs for package \`$*' ..."; \(cd ../../src/gnuwin32/help && $(MAKE) RHOME=$(RHOME) latex-$*); \perl pkg2tex.pl $*; \fiFORCE:R-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`; \v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \echo "@set VERSION $${v}" > $@)mostlyclean: cleanclean:@echo cleaning in doc/manual@-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 *-pkg.texdistclean: clean@-rm -f pkg2tex.pl Rdnewer.pl *.pdf *.dvi *.info* *.htmlmaintainer-clean: distclean