[Rcpp-commits] r1436 - pkg/Rcpp/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jun 5 17:49:49 CEST 2010


Author: edd
Date: 2010-06-05 17:49:48 +0200 (Sat, 05 Jun 2010)
New Revision: 1436

Modified:
   pkg/Rcpp/inst/doc/Makefile
Log:
suggested change to Makefile to let me avoid (the still buggy) texidvi


Modified: pkg/Rcpp/inst/doc/Makefile
===================================================================
--- pkg/Rcpp/inst/doc/Makefile	2010-06-05 15:34:39 UTC (rev 1435)
+++ pkg/Rcpp/inst/doc/Makefile	2010-06-05 15:49:48 UTC (rev 1436)
@@ -1,4 +1,6 @@
 
+whoami=$(shell whoami)
+
 all: clean index.html Rcpp-unitTests.pdf Rcpp-introduction.pdf Rcpp-modules.pdf Rcpp-package.pdf
 
 clean:
@@ -37,7 +39,12 @@
 	Rscript -e "require(highlight); driver <- HighlightWeaveLatex(boxes = TRUE, bg = 'white' ); Sweave( 'Rcpp-modules.Rnw', driver = driver ); "
 	Rscript -e "tools::texi2dvi( 'Rcpp-modules.tex', pdf = TRUE, clean = FALSE )"
 	bibtex Rcpp-modules
+ifeq ($(whoami),edd)
+	pdflatex Rcpp-modules.tex
+	pdflatex Rcpp-modules.tex
+else
 	Rscript -e "tools::texi2dvi( 'Rcpp-modules.tex', pdf = TRUE, clean = TRUE )"
+endif
 	rm -fr Rcpp-modules.tex
 	rm -fr Rcpp-modules.bbl
 	rm -fr Rcpp-modules.blg
@@ -53,7 +60,12 @@
 	Rscript -e "require(highlight); driver <- HighlightWeaveLatex(boxes = TRUE, bg = 'white' ); Sweave( 'Rcpp-package.Rnw', driver = driver ); "
 	Rscript -e "tools::texi2dvi( 'Rcpp-package.tex', pdf = TRUE, clean = FALSE )"
 	bibtex Rcpp-package
+ifeq ($(whoami),edd)
+	pdflatex Rcpp-package
+	pdflatex Rcpp-package
+else
 	Rscript -e "tools::texi2dvi( 'Rcpp-package.tex', pdf = TRUE, clean = TRUE )"
+endif
 	rm -fr Rcpp-package.tex
 	rm -fr Rcpp-package.bbl
 	rm -fr Rcpp-package.blg
@@ -62,5 +74,3 @@
 	rm -fr Rcpp-package.log
 	rm Rcpp-package.Rnw
 	cp Rcpp-package/Rcpp-package-fake.Rnw Rcpp-package.Rnw
-	
-	



More information about the Rcpp-commits mailing list