Skip to content

Commit

Permalink
Adding a base makefile for standard builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri-M-Dias committed Oct 30, 2018
1 parent c91195d commit 35269f8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 35269f8

Please sign in to comment.