-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 748 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 748 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
.PHONY : clean check install
NAME=$(shell sed -n 's/Package: \(.*\)/\1/p' DESCRIPTION)
VERSION=$(shell sed -n 's/Version: \(.*\)/\1/p' DESCRIPTION)
ARCHIVE=${NAME}_${VERSION}.tar.gz
${ARCHIVE} : man/datax.Rd DESCRIPTION
R CMD build .
man/datax.Rd : R/LaTeXDatax.r
Rscript -e "library(roxygen2);roxygenize('.')"
check : ${ARCHIVE}
R CMD check $<
install : ${ARCHIVE}
R CMD install $<
test : tests/show.pdf
tests/show.pdf : tests/show.tex tests/data.tex
latexmk --xelatex --output-directory=tests $<
tests/data.tex : tests/test.r R/LaTeXDatax.r
Rscript $<
clean :
${RM} ${NAME}_*.tar.gz man/* NAMESPACE
${RM} -R ${NAME}.Rcheck
${RM} -R tests/*.pdf tests/data.tex tests/*.log tests/*.aux tests/*.fls tests/*.fdb_latexmk tests/*.xdv