[Rprotobuf-commits] r416 - in pkg: . inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Apr 8 20:33:11 CEST 2011


Author: edd
Date: 2011-04-08 20:33:09 +0200 (Fri, 08 Apr 2011)
New Revision: 416

Modified:
   pkg/cleanup
   pkg/inst/doc/Makefile
Log:
some tweaks


Modified: pkg/cleanup
===================================================================
--- pkg/cleanup	2011-04-06 02:06:49 UTC (rev 415)
+++ pkg/cleanup	2011-04-08 18:33:09 UTC (rev 416)
@@ -9,5 +9,8 @@
     inst/doc/RProtoBuf*.toc 
 rm -rf inst/doc/auto
 
+[ -d inst/doc ] && ( cd  inst/doc && make clean )
+
+
 [ -d inst/examples/HighFrequencyFinance ] && \
     ( cd  inst/examples/HighFrequencyFinance && make clean )

Modified: pkg/inst/doc/Makefile
===================================================================
--- pkg/inst/doc/Makefile	2011-04-06 02:06:49 UTC (rev 415)
+++ pkg/inst/doc/Makefile	2011-04-08 18:33:09 UTC (rev 416)
@@ -1,9 +1,14 @@
 
 all: RProtoBuf-unitTests.pdf RProtoBuf.pdf RProtoBuf-quickref.pdf
 
-clean:
+pdfclean:
 	rm -fr *.pdf
 
+clean:
+	rm -f RProtoBuf.tex RProtoBuf.aux RProtoBuf.logRProtoBuf.out
+	rm -f RProtoBuf-quickref.tex RProtoBuf-quickref.Rnw RProtoBuf-quickref.aux RProtoBuf-quickref.log RProtoBuf-quickref.out
+	rm -f RProtoBuf-unitTests.texRProtoBuf-unitTests.Rnw RProtoBuf-unitTests.aux RProtoBuf-unitTests.log RProtoBuf-unitTests.out
+
 setvars:
 ifeq (${R_HOME},)
 R_HOME=	$(shell R RHOME)
@@ -15,26 +20,14 @@
 	$(RSCRIPT) --default-packages="RProtoBuf,Rcpp,brew,RUnit,tools,utils" unitTests/RProtoBuf-unitTests.R
 
 RProtoBuf.pdf: RProtoBuf/RProtoBuf.Rnw
-	touch RProtoBuf.Rnw
-	rm RProtoBuf.Rnw
-	cp RProtoBuf/RProtoBuf.Rnw RProtoBuf.Rnw
+	cp -f RProtoBuf/RProtoBuf.Rnw RProtoBuf.Rnw
 	$(RSCRIPT) -e "require( 'highlight' ); require('tools'); Sweave('RProtoBuf.Rnw', driver = HighlightWeaveLatex() ) ; texi2dvi('RProtoBuf.tex', pdf = TRUE, clean = TRUE)"
-	rm -fr RProtoBuf.tex
-	rm -fr RProtoBuf.Rnw
-	rm -fr RProtoBuf.aux
-	rm -fr RProtoBuf.log
-	rm -fr RProtoBuf.out
-	cp RProtoBuf/RProtoBuf-fake.Rnw RProtoBuf.Rnw
+	cp -f RProtoBuf/RProtoBuf-fake.Rnw RProtoBuf.Rnw
 
 RProtoBuf-quickref.pdf: RProtoBuf-quickref/RProtoBuf-quickref.Rnw
 	touch RProtoBuf-quickref.Rnw
 	rm RProtoBuf-quickref.Rnw
-	cp RProtoBuf-quickref/RProtoBuf-quickref.Rnw .
+	cp -f RProtoBuf-quickref/RProtoBuf-quickref.Rnw .
 	$(RSCRIPT) -e "require( 'highlight' ); require('tools'); Sweave('RProtoBuf-quickref.Rnw', driver = HighlightWeaveLatex() ) ; texi2dvi('RProtoBuf-quickref.tex', pdf = TRUE, clean = TRUE)"
-	rm -fr RProtoBuf-quickref.tex
-	rm -fr RProtoBuf-quickref.Rnw
-	rm -fr RProtoBuf-quickref.aux
-	rm -fr RProtoBuf-quickref.log
-	rm -fr RProtoBuf-quickref.out
-	cp RProtoBuf-quickref/RProtoBuf-quickref-fake.Rnw RProtoBuf-quickref.Rnw
+	cp -f RProtoBuf-quickref/RProtoBuf-quickref-fake.Rnw RProtoBuf-quickref.Rnw
 



More information about the Rprotobuf-commits mailing list