-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (24 loc) · 920 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
29
30
31
32
VERSION:=$(shell grep Version: DESCRIPTION|sed 's/Version: //')
NAME:=$(shell grep Package: DESCRIPTION|sed 's/Package: //')
PACKAGEFILE:=$(NAME)_$(VERSION).tar.gz
all: ../$(PACKAGEFILE) README.md
.PHONY: all install
install:
R -e 'devtools::install_github("sherrillmix/DNAPlotR")'
localInstall:
R -e 'devtools::install()'
man: R/*.R
R -e 'devtools::document()'
touch man
README.md: README.Rmd
R -e 'knitr::opts_chunk$$set(fig.path="README_files/");knitr::knit("README.Rmd")'
inst/doc: vignettes/*.Rnw R/*.R
make localInstall
R -e 'devtools::build_vignettes()'
if [ -d inst/doc ];then touch inst/doc;fi
data: data-raw/makeAminoColors.R
Rscript data-raw/makeAminoColors.R
touch data
../$(PACKAGEFILE): man R/*.R DESCRIPTION inst/doc data tests/testthat/*.R
sed -i "s/^Date:.*$$/Date: `date +%Y-%m-%d`/" DESCRIPTION
R -e "devtools::check(build_args = c('--compact-vignettes=both'));devtools::build()"