From b561996c588b6602b24aa1d236dee88f7c1d85a1 Mon Sep 17 00:00:00 2001 From: ranke Date: Tue, 11 Sep 2012 23:56:14 +0000 Subject: - Fixed the link to the bug report in the vignette - thanks to John Thaden for the hint - Moved the vignette to the vignettes/ folder in order to avoid to write an .Rinstignore file - Made the vignette compile in trunk, the trunk contains unfinished stuff however git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/chemCal@29 5fad18fb-23f0-0310-ab10-e59a3bee62b4 --- branches/0.1/chemCal/vignettes/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 branches/0.1/chemCal/vignettes/Makefile (limited to 'branches/0.1/chemCal/vignettes/Makefile') diff --git a/branches/0.1/chemCal/vignettes/Makefile b/branches/0.1/chemCal/vignettes/Makefile new file mode 100644 index 0000000..8eca69e --- /dev/null +++ b/branches/0.1/chemCal/vignettes/Makefile @@ -0,0 +1,33 @@ +# Makefile for Sweave documents containing both Latex and R code +# Author: Johannes Ranke +# Last Change: 2006 Jun 23 +# based on the Makefile of Nicholas Lewin-Koh +# in turn based on work of Rouben Rostmaian +# SVN: $Id: Makefile.rnoweb 62 2006-05-24 08:30:59Z ranke $ + +RNWFILES = $(wildcard *.Rnw) +TARGETS = $(patsubst %.Rnw,%.tex,$(RNWFILE)) $(patsubst %.Rnw,%.pdf,$(RNWFILES)) + +RERUN = "(There were undefined references|Rerun to get (cross-references|the bars) right|Table widths have changed. Rerun LaTeX.|Linenumber reference failed)" +RERUNBIB = "No file.*\.bbl|Citation.*undefined" + +%.tex: %.Rnw + echo 'Sweave("$<")' | R --no-save --no-restore + +%.pdf: %.tex + pdflatex $< + egrep -c $(RERUNBIB) $*.log && (bibtex $*;pdflatex $<); true + egrep $(RERUN) $*.log && (pdflatex $<) ; true + egrep $(RERUN) $*.log && (pdflatex $<) ; true + +all: all-recursive $(TARGETS) + +clean: clean-recursive + rm -f *.aux *.log *.bbl *.blg *.brf *.cb *.ind *.idx *.ilg \ + *.inx *.ps *.dvi *.toc *.out *.lot *~ *.lof *.ttt *.fff + +all-recursive: + for dir in $(wildcard *); do if [ -d $$dir ] && [ -f $$dir/Makefile ]; then cd $$dir; $(MAKE) all; cd ..; fi; done + +clean-recursive: + for dir in $(wildcard *); do if [ -d $$dir ] && [ -f $$dir/Makefile ]; then cd $$dir; $(MAKE) clean; cd ..; fi; done -- cgit v1.2.1