diff options
author | ranke <ranke@5fad18fb-23f0-0310-ab10-e59a3bee62b4> | 2012-09-11 23:56:14 +0000 |
---|---|---|
committer | ranke <ranke@5fad18fb-23f0-0310-ab10-e59a3bee62b4> | 2012-09-11 23:56:14 +0000 |
commit | b561996c588b6602b24aa1d236dee88f7c1d85a1 (patch) | |
tree | d3e4877c6b2ab0a249fba44955f2e611b69b7168 /trunk/chemCal/vignettes/Makefile | |
parent | de25b97cfa4d97f0e7c3e1e845bfa91a200b91be (diff) |
- 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
Diffstat (limited to 'trunk/chemCal/vignettes/Makefile')
-rw-r--r-- | trunk/chemCal/vignettes/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/trunk/chemCal/vignettes/Makefile b/trunk/chemCal/vignettes/Makefile new file mode 100644 index 0000000..8eca69e --- /dev/null +++ b/trunk/chemCal/vignettes/Makefile @@ -0,0 +1,33 @@ +# Makefile for Sweave documents containing both Latex and R code +# Author: Johannes Ranke <jranke@uni-bremen.de> +# 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 |