-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 908 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## #######################################################################################
##
## Package maintenance makefile
##
## #######################################################################################
R_EXEC := /usr/bin/R --no-save --quiet
# Build package
build:
@$(R_EXEC) -e "devtools::build()"
# Build and install package
install:
@$(R_EXEC) -e "devtools::install()"
# Build man pages
build-docs:
@$(R_EXEC) -e "devtools::document()"
# Check package for CRAN
check:
@$(R_EXEC) -e "devtools::check(cran = TRUE)"
# Convenience target to print all of the available targets in this file
# From https://stackoverflow.com/questions/4219255
.PHONY: list
list:
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | \
awk -v RS= -F: '/^# File/,/^# Finished Make data base/ \
{if ($$1 !~ "^[#.]") {print $$1}}' | \
sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'