[or-cvs] r18569: {} Add a proper Makefile for perfomance.tex (projects/performance)

sjm217 at seul.org sjm217 at seul.org
Mon Feb 16 11:23:12 UTC 2009


Author: sjm217
Date: 2009-02-16 06:23:10 -0500 (Mon, 16 Feb 2009)
New Revision: 18569

Added:
   projects/performance/Makefile
Log:
Add a proper Makefile for perfomance.tex

Added: projects/performance/Makefile
===================================================================
--- projects/performance/Makefile	                        (rev 0)
+++ projects/performance/Makefile	2009-02-16 11:23:10 UTC (rev 18569)
@@ -0,0 +1,25 @@
+all: performance.pdf
+
+performance.pdf: node-selection/exit-capacity.pdf \
+	node-selection/optimum-selection-probabilities.pdf \
+	node-selection/relative-selection-probabilities.pdf \
+	node-selection/vary-network-load.pdf
+
+%.pdf: %.tex
+	rm -f $*.ps $*.pdf
+	pdflatex $< || { rm -f $*.pdf $*.dvi $*.aux $*.idx && false ; }
+	while grep 'Rerun to get cross-references right.' $*.log ; do \
+	  pdflatex $< || { rm -f $*.pdf $*.dvi $*.aux $*.idx && false ; } ; done
+
+node-selection/optimum-selection-probabilities.pdf \
+node-selection/relative-selection-probabilities.pdf: node-selection/plot-node-selection.R
+	cd node-selection; R CMD BATCH --vanilla ../$<
+
+node-selection/%.pdf: node-selection/%.R
+	cd node-selection; R CMD BATCH --vanilla ../$<
+
+clean:
+	rm -f *~ \
+	      *.Rout \
+	      *.aux *.log *.out *.pdf
+	rm -f node-selection/*.pdf node-selection/*.Rout  node-selection/*~



More information about the tor-commits mailing list