1
## The next line contains the root of the source file name, which should be
2
## something like "Sweave-Example.Rnw".
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
19
#.Rnw.pdf: ; $(SWEAVE) $*.Rnw ; pdflatex '\scrollmode \input '"$*"; bibtex $* ;while grep -s 'Rerun to get cross-references right' $*.log; do pdflatex '\scrollmode \input '"$*"; done
21
.Rnw.pdf: ; $(SWEAVE) $*.Rnw ; pdflatex '\scrollmode \input '"$*"; while grep -s 'Rerun to get cross-references right' $*.log; do pdflatex '\scrollmode \input '"$*"; done
24
default : $(SOURCE).pdf
28
$(SOURCE).pdf : $(SOURCE).tex
29
$(SOURCE).tex : $(SOURCE).Rnw
32
#$(SOURCE).dvi $(SOURCE).ps
33
#$(SOURCE).dvi : $(SOURCE).tex
34
#$(SOURCE).ps : $(SOURCE).dvi