Makefile
2dba0a46
 PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGSRC  := $(shell basename `pwd`)
 
 all: rd readme check clean
 
 alldocs: rd readme mkdocs
 
 rd:
 	Rscript -e 'roxygen2::roxygenise(".")'
 
 readme:
 	Rscript -e 'rmarkdown::render("README.Rmd")'
 
 build:
 	cd ..;\
 	R CMD build $(PKGSRC)
 
 build2:
 	cd ..;\
 	R CMD build --no-build-vignettes $(PKGSRC)
 
 install:
 	cd ..;\
 	R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
 
 check: build
 	cd ..;\
 	Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
 check2: build
 	cd ..;\
 	R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
 
 bioccheck:
 	cd ..;\
 	Rscript -e 'BiocCheck::BiocCheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
 clean:
 	cd ..;\
 	$(RM) -r $(PKGNAME).Rcheck/
 
 site: mkdocs
 
 mkdocs: mdfiles
 	cd mkdocs;\
 	mkdocs build;\
 	cd ../docs;\
 	rm -rf fonts;\
b688c13a
 	rm -rf css/font-awesome*;\
 	Rscript -e 'library(ypages); add_biobabble("index.html")'
 
b6ed0e11
 mysoftware:
6fe12e67
 	git submodule add -f git@github.com:GuangchuangYu/mysoftware.git mkdocs/mysoftware;\
 	rm -rf .gitmodules;\
 	rm -rf mkdocs/mysoftware/.git
2dba0a46
 
 mdfiles:
 	cd mkdocs;\
cc7b21be
 	Rscript -e 'library(ypages); gendoc("src/index.md", "blue", "docs/index.md")';\
 	Rscript -e 'library(ypages); gendoc("src/documentation.md", "blue", "docs/documentation.md")';\
 	Rscript -e 'library(ypages); gendoc("src/featuredArticles.md", "blue", "docs/featuredArticles.md")';\
 	Rscript -e 'library(ypages); gendoc("src/faq.md", "blue", "docs/faq.md")';\
2dba0a46
 	cd docs;\
6fe12e67
 	ln -f -s ../mysoftware/* ./
2dba0a46
 
 svnignore:
 	svn propset svn:ignore -F .svnignore .
 
 svncommit:
 	git checkout devel;\
 	git svn rebase;\
 	git merge master --log;\
 	git svn dcommit;\
c039b05a
 	git push -u origin devel;\
2dba0a46
 	git checkout master;\
 	git merge devel