aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-04-22 13:42:10 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-04-22 13:42:10 +0200
commitec79637749d300ab4ca170805c673905e52d67dd (patch)
tree6eabf636f3012daecbe7ee446b1083da86d64e63 /Makefile
parent8ffbc49b3f01deac6f9e83aaa6d318d4e2f8552b (diff)
Add simplest PEC soil calcs, use testthat
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile51
1 files changed, 0 insertions, 51 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index db1ade6..0000000
--- a/Makefile
+++ /dev/null
@@ -1,51 +0,0 @@
-PKGSRC := $(shell basename $(CURDIR))
-PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" pkg/DESCRIPTION)
-PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" pkg/DESCRIPTION)
-TGZ := $(PKGSRC)_$(PKGVERS).tar.gz
-R_HOME ?= $(shell R RHOME)
-DATE := $(shell date +%Y-%m-%d)
-
-.PHONEY: usage check clean
-
-usage:
- @echo "Usage: make TARGET with TARGET being:"
- @echo ""
- @echo " clean - Clean up."
- @echo " roxygen - Roxygenize."
- @echo " build - Build source package."
- @echo " check - Run CRAN check on the package."
- @echo " install - Install the package."
-
-pkgfiles = pkg/DESCRIPTION \
- pkg/inst/testdata/* \
- pkg/R/*
-
-clean:
- @echo "Cleaning up..."
- rm -fR pkg.Rcheck
- @echo "DONE."
-
-roxygen:
- @echo "Roxygenizing package..."
- "$(R_HOME)/bin/Rscript" -e 'library(roxygen2); roxygenize("pkg")' > roxygen.log 2>&1 || cat roxygen.log
- @echo "DONE."
-
-$(TGZ): $(pkgfiles)
- @echo "Building package..."
- sed -i -e "s/Date:.*/Date: $(DATE)/" pkg/DESCRIPTION
- "$(R_HOME)/bin/Rscript" -e 'library(roxygen2); roxygenize("pkg")' > roxygen.log 2>&1 || cat roxygen.log
- git log --no-merges -M --date=iso pkg/ > pkg/ChangeLog
- "$(R_HOME)/bin/R" CMD build pkg > build.log 2>&1
- @echo "DONE."
-
-build: $(TGZ)
-
-check: build
- @echo "Running CRAN check..."
- "$(R_HOME)/bin/R" CMD check --as-cran $(TGZ)
- @echo "DONE."
-
-install: build
- @echo "Installing package..."
- "$(R_HOME)/bin/R" CMD INSTALL --no-multiarch $(TGZ)
- @echo "DONE."

Contact - Imprint