Makefile
2dba0a46
 PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGSRC  := $(shell basename `pwd`)
 
0266c285
 all: rd check clean
2dba0a46
 
0acf2bde
 for-release: rd check-dontrun clean readme
 
deb8e67d
 alldocs: rd readme
2dba0a46
 
 rd:
99048963
 	Rscript -e 'library(methods); devtools::document()'
 # Rscript -e 'roxygen2::roxygenise(".")'
2dba0a46
 
 readme:
18618ecb
 	Rscript -e 'rmarkdown::render("README.Rmd", encoding="UTF-8")'
2dba0a46
 
2d18b912
 sticker:
 	Rscript -e 'source("ggtree_sticker.R")';
 	rm Rplots.pdf
 
2dba0a46
 build:
 	cd ..;\
 	R CMD build $(PKGSRC)
 
 build2:
 	cd ..;\
 	R CMD build --no-build-vignettes $(PKGSRC)
 
 install:
 	cd ..;\
 	R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
 
99048963
 check: rd build
2dba0a46
 	cd ..;\
e97f14c3
 	Rscript -e "rcmdcheck::rcmdcheck('$(PKGNAME)_$(PKGVERS).tar.gz')"
2dba0a46
 
0acf2bde
 check-dontrun: build
 	cd ..;\
 	Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz", args=c("--run-dontrun"))'
 
99048963
 check2: rd build
2dba0a46
 	cd ..;\
 	R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
 
6be958c5
 check3: rd build2
 	cd ..;\
 	R CMD check --ignore-vignettes $(PKGNAME)_$(PKGVERS).tar.gz
 
2dba0a46
 bioccheck:
 	cd ..;\
e97f14c3
 	Rscript -e "BiocCheck::BiocCheck('$(PKGNAME)_$(PKGVERS).tar.gz')"
2dba0a46
 
 clean:
 	cd ..;\
 	$(RM) -r $(PKGNAME).Rcheck/
 
b80c900e
 
3c4c8dcf
 gitmaintain:
 	git gc --auto;\
 	git prune -v;\
 	git fsck --full
b80c900e
 
e0740bda
 biocinit:
 	git remote add upstream git@git.bioconductor.org:packages/$(PKGNAME).git;\
 	git fetch --all
 
b57ec7d6
 giteeinit:
c9910e69
 	git remote add gitee git@gitee.com:GuangchuangYu/$(PKGNAME).git;\
b57ec7d6
 	git fetch --all
 
c2cfbee3
 rmoldrelease:
2e42b856
 	git branch -D RELEASE_3_12
c2cfbee3
 
ead856b2
 release:
2e42b856
 	git checkout RELEASE_3_13;\
38cc4744
 	git fetch --all
ead856b2
 
c84682c4
 update:
 	git fetch --all;\
 	git checkout master;\
 	git merge upstream/master;\
b57ec7d6
 	git merge gitee/master;\
c84682c4
 	git merge origin/master
 
ead856b2
 push:
c84682c4
 	git push upstream master;\
b57ec7d6
 	git push gitee master;\
c84682c4
 	git push origin master
0b103e34
 
 
 # svnignore:
 # 	svn propset svn:ignore -F .svnignore .
 
 # svncommit:
 # 	git checkout devel;\
 # 	git svn rebase;\
 # 	git merge master --log;\
 # 	git svn dcommit;\
 # 	git push -u origin devel;\
 # 	git checkout master;\
 # 	git merge devel