[Rcpp-commits] r1467 - pkg/Rcpp/inst/doc/Rcpp-extending
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Jun 7 14:51:06 CEST 2010
Author: romain
Date: 2010-06-07 14:51:06 +0200 (Mon, 07 Jun 2010)
New Revision: 1467
Added:
pkg/Rcpp/inst/doc/Rcpp-extending/Makefile
Log:
so that I can work on the content locally
Added: pkg/Rcpp/inst/doc/Rcpp-extending/Makefile
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-extending/Makefile (rev 0)
+++ pkg/Rcpp/inst/doc/Rcpp-extending/Makefile 2010-06-07 12:51:06 UTC (rev 1467)
@@ -0,0 +1,34 @@
+
+## There is an old bug in texidvi that makes it not swallow the ~
+## marker used to denote whitespace. This is actually due to fixing
+## another bug they whereby you could not run texidvi on directory
+## names containing a tilde (as we happen to do for Debian builds of R
+## alpha/beta/rc releases). The 'tilde' bug will go away as it
+## reportedly has been squashed upstream but I am still bitten by it
+## on Ubuntu so for Dirk will insist on pdflatex and this variable helps
+whoami=$(shell whoami)
+
+all: clean Rcpp-extending.pdf
+
+clean:
+ touch Rcpp-extending.pdf
+ rm -fr Rcpp-extending.pdf
+
+Rcpp-extending.pdf: Rcpp-extending.Rnw
+ cp ../Rcpp-modules.bib .
+ Rscript -e "require(highlight); driver <- HighlightWeaveLatex(boxes = TRUE, bg = 'white' ); Sweave( 'Rcpp-extending.Rnw', driver = driver ); "
+ Rscript -e "tools::texi2dvi( 'Rcpp-extending.tex', pdf = TRUE, clean = FALSE )"
+ifeq ($(whoami),edd)
+ pdflatex Rcpp-extending
+ pdflatex Rcpp-extending
+else
+ Rscript -e "tools::texi2dvi( 'Rcpp-extending.tex', pdf = TRUE, clean = TRUE )"
+endif
+ rm -fr Rcpp-extending.tex
+ rm -fr Rcpp-extending.bbl
+ rm -fr Rcpp-extending.blg
+ rm -fr Rcpp-extending.aux
+ rm -fr Rcpp-extending.out
+ rm -fr Rcpp-extending.log
+ rm -fr Rcpp-modules.bib
+
More information about the Rcpp-commits
mailing list