forked from talkowski-lab/gCNV-analysis-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 748 Bytes
/
Makefile
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
wdls = $(wildcard wdl/*.wdl)
.PHONY : validate_wdl build check clean install
gelpers_version := $(shell grep -F Version src/gelpers/DESCRIPTION | cut -d ' ' -f 2)
validate_wdl:
ifneq ($(findstring validate_wdl,$(MAKECMDGOALS)),)
ifeq ($(strip $(WOMTOOL)),)
$(error WOMTOOL must be set to path of womtool JAR)
endif
endif
ifneq ($(strip $(wdls)),)
@for wdl in $(wdls); do \
printf "\n\n\e[38;5;11m*** Validating %s ***\e[0m\n" "$${wdl}"; \
java -jar $(WOMTOOL) validate "$${wdl}" || exit 1; \
done
endif
build:
R -e 'roxygen2::roxygenize("src/gelpers")'
R CMD build src/gelpers
check: build
R CMD check gelpers_$(gelpers_version).tar.gz
install: build
R CMD INSTALL gelpers_$(gelpers_version).tar.gz
clean:
rm -rf *.Rcheck