Rev 7002 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#-*-Makefile-*-## ${R_HOME}/doc/manual/Makefile.winPAPER = a4PDFLATEX = pdflatexPDFTEX = pdftexMAKEINDEX = makeindexTEXINDEX = texindexRHOME=$(shell cd ../..; pwd)R_PKGS=base eda lqs modreg mva nls splines stepfun ts# set the next to `ae' to omit the hyperlinksPDF=pdfsrcdir = .top_srcdir = ../..pkgsrcs = $(R_PKGS:=-pkg.tex).SUFFIXES:.SUFFIXES: .dvi .info .texi .pdfall: lib2tex.pl pdflib2tex.pl: lib2tex.insed -e 1d $^ > $@.texi.pdf:$(PDFTEX) $<$(PDFTEX) $<pdf: refman.pdf R-exts.pdfrefman.tex: lib2tex.pl refman.top $(srcdir)/refman.bot@echo "creating $(subdir)/$@"@(cat refman.top; \for p in $(R_PKGS); do echo "\\input{$${p}-pkg.tex}"; done; \cat $(srcdir)/refman.bot) > $@refman.top: $(srcdir)/refman.top.insed -e s/@R_PAPERSIZE@/$(PAPER)/ $^ > $@version.tex: ../../bin/rterm.exe $(top_srcdir)/VERSION@echo "creating $(subdir)/$@"@(v=`cat $(top_srcdir)/VERSION`; \y=`cut -d/ -f1 < $(top_srcdir)/date-stamp`; \m=`cut -d/ -f2 < $(top_srcdir)/date-stamp`; \d=`cut -d/ -f3 < $(top_srcdir)/date-stamp`; \echo "$${v} ($${m} $${d}, $${y})") > $@%-pkg.tex: FORCE@echo "Collecting components of $@ ..."cd ../../src/gnuwin32/help && $(MAKE) RHOME=$(RHOME) latex-$*perl lib2tex.pl $*FORCE:refman.pdf: refman.tex version.tex $(pkgsrcs) $(srcdir)/Rd.sty@echo " PDF LaTeX documentation: Reference Index ..."@$(RM) -f *.aux refman.toc refman.ind@TEXINPUTS="$(PDF);.;" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@$(MAKEINDEX) refman@TEXINPUTS="$(PDF);.;" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'@TEXINPUTS="$(PDF);.;" \$(PDFLATEX) '\nonstopmode\input{refman.tex}'R-exts.pdf: R-exts.texi version.texi$(PDFTEX) R-exts.texi$(TEXINDEX) R-exts.cp R-exts.fn R-exts.vr$(PDFTEX) R-exts.texiversion.texi: $(top_srcdir)/VERSION@echo "creating $(subdir)/$@"@(v=`sed 's/\([^ ]*\).*/\1/' $(top_srcdir)/VERSION`; \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 *.vrsdistclean: clean@-rm -f version.tex *-pkg.tex lib2tex.pl \refman.tex refman.top *.pdfmaintainer-clean: distclean