~ubuntu-branches/ubuntu/raring/ess/raring-proposed

« back to all changes in this revision

Viewing changes to etc/useR-2006-ESS/Lab2/SweaveMakefile

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2011-02-03 16:10:05 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110203161005-g1bg3cd5mtu15uh3
Tags: 5.13-1
New upstream version released today

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## The next line contains the root of the source file name, which should be  
 
2
## something like "Sweave-Example.Rnw".
 
3
SOURCE=Sweave-Example
 
4
 
 
5
 
 
6
SWEAVE=./Sweave.sh
 
7
PDFVIEWER=acroread
 
8
#PDFVIEWER=xpdf
 
9
 
 
10
.SUFFIXES: .i3 .m3 .nw .tex .dvi .html .c .h .Rnw .pdf
 
11
##.nw.html: ;       $(NOWEAVE) -filter l2h -index -html $*.nw > $*.html
 
12
##.nw.tex:  ;       $(NOWEAVE) -index -delay $*.nw | cpif $*.tex
 
13
##.nw.h:  ;       $(NOTANGLE) -R$*.h | cpif $*.h
 
14
##.nw.c:  ;       $(NOTANGLE) -R$*.c | cpif $*.c
 
15
##.Rnw.tex: ;       $(SWEAVE) $*.Rnw
 
16
##.tex.pdf: ;       pdflatex '\scrollmode \input '"$*"; while grep -s 'Rerun to get cross-references right' $*.log; do pdflatex '\scrollmode \input '"$*"; done
 
17
##.tex.dvi: ;          latex '\scrollmode \input '"$*"; while grep -s 'Rerun to get cross-references right' $*.log; do    latex '\scrollmode \input '"$*"; done
 
18
##With BibTeX
 
19
#.Rnw.pdf: ;       $(SWEAVE) $*.Rnw ; pdflatex '\scrollmode \input '"$*"; bibtex $* ;while grep -s 'Rerun to get cross-references right' $*.log; do pdflatex '\scrollmode \input '"$*"; done
 
20
##Without BibTeX
 
21
.Rnw.pdf: ;       $(SWEAVE) $*.Rnw ; pdflatex '\scrollmode \input '"$*"; while grep -s 'Rerun to get cross-references right' $*.log; do pdflatex '\scrollmode \input '"$*"; done
 
22
 
 
23
 
 
24
default : $(SOURCE).pdf 
 
25
        xpdf $(SOURCE).pdf
 
26
 
 
27
 
 
28
$(SOURCE).pdf : $(SOURCE).tex
 
29
$(SOURCE).tex : $(SOURCE).Rnw
 
30
 
 
31
 
 
32
#$(SOURCE).dvi $(SOURCE).ps
 
33
#$(SOURCE).dvi : $(SOURCE).tex
 
34
#$(SOURCE).ps  : $(SOURCE).dvi
 
35
#       dvips $(SOURCE) -o
 
36
 
 
37