-
Notifications
You must be signed in to change notification settings - Fork 77
/
Makefile
36 lines (25 loc) 路 830 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
33
34
35
36
pkg = $(shell basename $(CURDIR))
all: build
NAMESPACE: R/*
Rscript -e "devtools::document()"
README.md: README.Rmd
Rscript -e "knitr::knit('README.Rmd')"
R/sysdata.rda: data-raw/single.json
Rscript data-raw/convert.R
Rscript -e "devtools::build_readme()"
README.html: README.md
pandoc -o README.html README.md
../$(pkg)*.tar.gz: DESCRIPTION NAMESPACE README.md R/* man/* tests/testthat/* po/R-rio.pot R/sysdata.rda
cd ../ && R CMD build $(pkg)
build: ../$(pkg)*.tar.gz
check: ../$(pkg)*.tar.gz
cd ../ && R CMD check $(pkg)*.tar.gz
rm ../$(pkg)*.tar.gz
install: ../$(pkg)*.tar.gz
cd ../ && R CMD INSTALL $(pkg)*.tar.gz
rm ../$(pkg)*.tar.gz
website: R/* README.md DESCRIPTION
Rscript -e "pkgdown::build_site()"
po/R-rio.pot: R/* DESCRIPTION
Rscript -e "tools::update_pkg_po('.')"
translations: po/R-rio.pot