-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
29 lines (24 loc) · 886 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# build package documentation
doc:
R -e 'roxygen2::roxygenize()'
clean:
rm -f *~
rm -f */*~
rm -f .*~
rm -f inst/rscripts/*~
rm -f vignettes/.Rhistory
rm -f vignettes/.RData
rm -f vignettes/vignette.aux
rm -f vignettes/vignette.log
rm -f vignettes/vignette.out
rm -f vignettes/vignette.toc
rm -fr vignettes/auto
# knit the vignettes
inst/doc/%.pdf:vignettes/%.Rnw
cd vignettes;R CMD Sweave --engine=knitr::knitr --pdf $(<F);cp -f $(<F) ../inst/doc;mv -f $(<F:.Rnw=.pdf) ../inst/doc ; rm -fr figure ; rm -f vignette.aux ; rm -f vignette.log ; rm -f vignette.out; rm -f vignette.toc ; cd ..
# create the poster
poster/%.pdf:poster/%.tex poster/figs/fig0.pdf poster/figs/fig3.pdf poster/figs/fig2.pdf
cd poster; pdflatex $(<F);pdflatex $(<F);pdflatex $(<F);cd ..
# figs poster
poster/figs/%.pdf:poster/figs/codes/%.R
cd poster/figs/codes; R CMD BATCH $(<F);cd ../../..