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
 
8a005461
 alldocs: site rd readme
2dba0a46
 
 rd:
99048963
 	Rscript -e 'library(methods); devtools::document()'
 # Rscript -e 'roxygen2::roxygenise(".")'
2dba0a46
 
 readme:
 	Rscript -e 'rmarkdown::render("README.Rmd")'
 
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 ..;\
 	Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
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 ..;\
 	Rscript -e 'BiocCheck::BiocCheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
 
 clean:
 	cd ..;\
 	$(RM) -r $(PKGNAME).Rcheck/
 
09d9e070
 site:
69ce6809
 	cd site_src;\
30a6bb41
 	ln -s ../../software/themes themes;\
69ce6809
 	Rscript -e 'blogdown::build_site()';\
30a6bb41
 	rm themes;\
69ce6809
 	cd ..
2dba0a46
 
6cda60e2
 vignette:
 	cd site_src/vignettes;\
 	Rscript -e 'ff = list.files(pattern=".R|rmd"); sapply(ff, function(f) rmarkdown::render(f))';\
 	mv *html ../../docs/vignettes/
 
09d9e070
 preview:
d30f6545
 	cd site_src;\
 	ln -s ../../software/themes themes;\
 	Rscript -e 'blogdown::serve_site()';\
 	rm themes;\
 	cd ..
09d9e070
 
b80c900e
 
3c4c8dcf
 gitmaintain:
 	git gc --auto;\
 	git prune -v;\
 	git fsck --full
b80c900e
 
ead856b2
 release:
 	git checkout RELEASE_3_6;\
38cc4744
 	git fetch --all
ead856b2
 
c84682c4
 update:
 	git fetch --all;\
 	git checkout master;\
 	git merge upstream/master;\
 	git merge origin/master
 
ead856b2
 push:
c84682c4
 	git push upstream master;\
 	git push origin master
0b103e34
 
 
 # mkdocs: mdfiles
 # 	cd mkdocs;\
 # 	mkdocs build;\
 # 	cd ../docs;\
 # 	rm -rf fonts;\
 # 	rm -rf css/font-awesome*
 
 # mdfiles:
 # 	cd mkdocs;\
 # 	Rscript -e 'source("render.R")';\
 # 	cd docs;\
 # 	ln -f -s ../mysoftware/* ./
 
 # 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