From 35269f81afbf4715d9d46d1825ae55c5dfe0ad02 Mon Sep 17 00:00:00 2001 From: Yuri-M-Dias Date: Tue, 30 Oct 2018 16:33:30 -0300 Subject: [PATCH] Adding a base makefile for standard builds --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d8be8b --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# Based on https://github.com/robjhyndman/forecast/blob/master/Makefile +# Makefile for generating R packages, modified. +# Assumes Makefile is in top folder of package + +PKG_NAME="qcoder" # Bash code removed due to R CMD CHECK failure + +all: install + +check: + Rscript -e "devtools::check(document=TRUE)" + +build: + Rscript -e "devtools::build()" + +test: + Rscript -e "devtools::test()" + +install: + Rscript -e "devtools::install()" + +docs: + Rscript -e "devtools::document()" + +clean: + -rm -f ../$(PKG_NAME)_*.tar.gz + #-rm -r -f man/*.Rd + #-rm -r -f NAMESPACE +