Makefile
4745254b
 PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
 PKGSRC  := $(shell basename `pwd`)
 
7148ccfb
 all: rd readme check clean
4745254b
 
62e478e6
 alldocs: rd readme mkdocs
 
 rd:
4745254b
 	Rscript -e 'roxygen2::roxygenise(".")'
e6b74cd3
 
 readme:
3820acf0
 	Rscript -e 'rmarkdown::render("README.Rmd")'
4745254b
 
 build:
 	cd ..;\
 	R CMD build $(PKGSRC)
 
f393b5b3
 build2:
 	cd ..;\
 	R CMD build --no-build-vignettes $(PKGSRC)
 
4745254b
 install:
 	cd ..;\
 	R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
 
 check: build
7acca8ed
 	cd ..;\
 	Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
 check2: build
4745254b
 	cd ..;\
 	R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
 
f393b5b3
 bioccheck:
 	cd ..;\
 	Rscript -e 'BiocCheck::BiocCheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
4745254b
 clean:
 	cd ..;\
 	$(RM) -r $(PKGNAME).Rcheck/
2b921f74
 
7148ccfb
 site: mkdocs
 
70fff852
 mkdocs: mdfiles
62e478e6
 	cd mkdocs;\
10b697b4
 	mkdocs build;\
 	cd ../docs;\
 	rm -rf fonts;\
 	rm -rf css/font-awesome*
62e478e6
 
70fff852
 mdfiles:
62e478e6
 	cd mkdocs;\
70fff852
 	Rscript -e 'library(ypages); gendoc("private/index.md", "blue", "docs/index.md")';\
 	Rscript -e 'library(ypages); gendoc("private/documentation.md", "blue", "docs/documentation.md")';\
 	Rscript -e 'library(ypages); gendoc("private/featuredArticles.md", "blue", "docs/featuredArticles.md")';\
b75e259e
 	Rscript -e 'library(ypages); gendoc("private/faq.md", "blue", "docs/faq.md")';\
 	cd docs;\
 	ln -f -s ../mysoftware/* ./
 
62e478e6
 
2b921f74
 svnignore:
 	svn propset svn:ignore -F .svnignore .