-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a base makefile for standard builds
- Loading branch information
1 parent
c91195d
commit 35269f8
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|