-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 736 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 736 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
all: package
inst-files:
rm -rf inst
mkdir -p inst/doc
$(MAKE) inst/doc/r2x-introduction.pdf
mkdir -p inst/tests/testthat
mkdir -p inst/xsl
cp -v xsl/* inst/xsl
cp -v tests/testthat.R inst/tests/
cp -rv tests/testthat/r2x inst/tests/testthat/
doc:
Rscript -e "devtools::document(roclets = c('rd', 'collate'))"
package:
R CMD build .
install: package
R CMD INSTALL r2x_*.tar.gz
check: install
R CMD check r2x_*.tar.gz
clean:
rm -rf r2x_*.tar.gz r2x.Rcheck*
pdf: inst/doc inst/doc/r2x-introduction.pdf
inst/doc:
mkdir $@
inst/doc/r2x-introduction.pdf: README.org
emacs --batch -q -l export-init.el --file $< -f org-latex-export-to-latex
pdflatex README.tex
pdflatex README.tex
mv README.pdf $@
# rm README.tex