[Pomp-commits] r962 - in pkg: . pomp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri May 23 18:23:12 CEST 2014
Author: kingaa
Date: 2014-05-23 18:23:12 +0200 (Fri, 23 May 2014)
New Revision: 962
Added:
pkg/Makefile
Modified:
pkg/pomp/DESCRIPTION
Log:
- add Makefile for package building and testing
Added: pkg/Makefile
===================================================================
--- pkg/Makefile (rev 0)
+++ pkg/Makefile 2014-05-23 16:23:12 UTC (rev 962)
@@ -0,0 +1,176 @@
+REPOS=/var/www/html/R/
+SRCREPOS=src/contrib
+WINREPOS=bin/windows/contrib/3.1
+DOCREPOS=doc/packages
+ARCHIVE=./dists
+INSTALL_DIR=./library
+
+REXE = R --vanilla
+RCMD = $(REXE) CMD
+RSCRIPT = Rscript --vanilla
+
+PDFLATEX = pdflatex
+BIBTEX = bibtex
+MAKEIDX = makeindex
+
+RM = rm -f
+CP = cp
+TOUCH = touch
+INSTALL = install
+
+default:
+
+.PHONY:
+
+pomp.dist: pomp/inst/include/pomp.h
+
+pomp/inst/include/pomp.h: pomp/src/pomp.h
+ $(CP) $^ $@
+
+pompweb.vignettes: export POMP_BUILD_VIGNETTES=yes
+%.dist %.manual %.vignettes: export R_QPDF=qpdf
+%.dist %.manual %.vignettes: export R_GSCMD=gs
+%.dist %.manual %.vignettes: export GS_QUALITY=ebook
+%.dist %.manual %.vignettes: export R_HOME=$(shell $(REXE) RHOME)
+%.check %.crancheck: export _R_CHECK_ALL_NON_ISO_C_=TRUE
+%.check %.crancheck: export _R_CHECK_WALL_FORTRAN_=TRUE
+%.check %.xcheck: export POMP_FULL_TESTS=yes
+%.vignettes %.data: export R_LIBS=$(CURDIR)/library
+%.bin %.check %.qcheck %.qqcheck %.xcheck %.crancheck %.upload %.publish %.clean %.install %.win: PKG = $*_$(shell perl -ne 'print $$1 if /Version:\s+(\d+\.\d+-\d+)/;' $*/DESCRIPTION)
+
+pompweb.vignettes: pomp.install pomp.manual
+ (cd pompweb/vignettes; make)
+ cp pomp.pdf pompweb/vignettes
+ $(RCMD) Rdconv -t html pomp/inst/NEWS.Rd -o pompweb/content/NEWS.html
+
+%.vignettes: %.install
+ cd $*/vignettes; make
+
+%.data: %.install
+ cd $*/inst/data-R; make
+
+%.win: %.dist
+ ncftpput -v win-builder.r-project.org R-release $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.upload: %.dist
+ ncftpput -v cran.r-project.org incoming $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.crandist: %.cransrc
+ $(RCMD) build --resave-data --compact-vignettes --md5 cran/$*
+ $(TOUCH) $@
+
+%.crancheck: %.crandist
+ $(RCMD) check --as-cran --library=check $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.cransrc:
+ $(RM) -r cran
+ mkdir -p cran
+ svn export $* cran/$*
+ $(RM) -r cran/$*/tests
+ $(TOUCH) $@
+
+%.xcheck: %.dist
+ $(RCMD) check --use-gct --use-valgrind --timings --library=check $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.check: %.dist
+ $(RCMD) check --library=check $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.qcheck: %.dist
+ $(RCMD) check --library=check --no-vignettes --no-tests $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.qqcheck: %.dist
+ $(RCMD) check --library=check --no-codoc --no-examples --no-vignettes --no-manual --no-tests $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.changelog:
+ $(SVN) update $*
+ $(SVN2CL) --include-rev --group-by-day -o $*/inst/ChangeLog $*
+ $(SVN) info $* | perl -ne "print if /Revision|Date/;" > $*/inst/SVN-REVISION
+ $(TOUCH) $@
+
+%.manual:
+ $(RM) $*.pdf
+ $(RCMD) Rd2pdf --no-preview --pdf $*
+ $(RSCRIPT) -e "tools::compactPDF(\"$*.pdf\")";
+ $(TOUCH) $@
+
+%.included_manual: %.manual
+ $(CP) $*.pdf $*/inst/doc/manual.pdf
+ $(TOUCH) $@
+
+%.dist: %.manual
+ -$(RCMD) Rdconv -t txt $*/inst/NEWS.Rd -o $*/inst/NEWS
+ $(RCMD) build --force --no-manual --resave-data --compact-vignettes=both $*
+ $(TOUCH) $@
+
+%.bin: %.dist
+ $(RCMD) build --force --binary $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.clean: clean
+ $(RM) $*.dist $*.check $*.qcheck $*.qqcheck $*.crancheck $*.manual $*.cransrc
+ $(RM) -r $*.Rcheck check/$* cran/$*
+ $(RM) $*/src/*.o $*/src/*.so $*/src/symbols.rds $*/vignettes/Rplots.*
+ $(RM) $(PKG).tar.gz $(PKG).zip $*.pdf
+
+%.distclean: %.clean
+ $(RM) $*.win $*.upload $*.bin $*.changelog $*.crandist $*.included_manual
+
+%.install: %.dist
+ mkdir -p $(INSTALL_DIR)
+ $(RCMD) INSTALL --library=$(INSTALL_DIR) $(PKG).tar.gz
+ $(TOUCH) $@
+
+%.remove:
+ $(RCMD) REMOVE --library=$(INSTALL_DIR) $*
+ $(RM) $*.install
+
+%.publish: %.dist %.manual
+ mkdir -m0755 -p $(REPOS)/$(WINREPOS)
+ mkdir -m0755 -p $(REPOS)/$(SRCREPOS)
+ mkdir -m0755 -p $(REPOS)/$(DOCREPOS)
+ (cd $(REPOS)/$(WINREPOS); $(RM) $*_*.zip)
+ (cd $(REPOS)/$(SRCREPOS); $(RM) $*_*.tar.gz)
+ (cd $(REPOS)/$(DOCREPOS); $(RM) $*.pdf)
+ -$(INSTALL) -m0644 $(PKG).zip $(REPOS)/$(WINREPOS)
+ -$(INSTALL) -m0644 $(PKG).tar.gz $(REPOS)/$(SRCREPOS)
+ -$(INSTALL) -m0644 $*.pdf $(REPOS)/$(DOCREPOS)
+ $(RSCRIPT) pkgindex.R winrepos="\"$(REPOS)/$(WINREPOS)\"" srcrepos="\"$(REPOS)/$(SRCREPOS)\""
+ mkdir -p $(ARCHIVE)
+ -$(INSTALL) -m0644 $(PKG).zip $(ARCHIVE)
+ -$(INSTALL) -m0644 $(PKG).tar.gz $(ARCHIVE)
+ -$(INSTALL) -m0644 $*.pdf $(ARCHIVE)
+ $(RSCRIPT) pkgindex.R
+
+%.tex: %.Rnw
+ $(RCMD) Sweave $*
+
+%.R: %.Rnw
+ $(RCMD) Stangle $*
+
+%.pdf: %.tex
+ $(PDFLATEX) $*
+ -$(BIBTEX) $*
+ $(PDFLATEX) $*
+ $(PDFLATEX) $*
+
+%.bbl: %.tex
+ -$(PDFLATEX) $*
+ $(BIBTEX) $*
+
+%.idx: %.tex
+ -$(PDFLATEX) $*
+
+%.ind: %.idx
+ $(MAKEIDX) $*
+
+clean:
+ $(RM) *.o *.so *.tex *.log *.aux *.out *.nav *.snm *.toc *-???.pdf Rplots.ps Rplots.pdf
+
+.SECONDARY:
Modified: pkg/pomp/DESCRIPTION
===================================================================
--- pkg/pomp/DESCRIPTION 2014-05-23 16:23:09 UTC (rev 961)
+++ pkg/pomp/DESCRIPTION 2014-05-23 16:23:12 UTC (rev 962)
@@ -2,7 +2,7 @@
Type: Package
Title: Statistical inference for partially observed Markov processes
Version: 0.51-1
-Date: 2014-05-21
+Date: 2014-05-23
Authors at R: c(person(given=c("Aaron","A."),family="King",
role=c("aut","cre"),email="kingaa at umich.edu"),
person(given=c("Edward","L."),family="Ionides",role=c("aut")),
More information about the pomp-commits
mailing list