-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 956 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
30
31
32
33
34
35
36
37
version ?= $(shell grep 'Plugin-Version' plugins/nf-dotenv/src/resources/META-INF/MANIFEST.MF | awk '{ print $$2 }')
.PHONY: all
all: compile build
.PHONY: clean
clean:
./gradlew clean
.PHONY: compile
compile:
./gradlew compileGroovy
.PHONY: compile-with-nextflow
compile-with-nextflow:
grep -qxF 'includeBuild("nextflow")' settings.gradle || echo 'includeBuild("nextflow")' >> settings.gradle
./gradlew :nextflow:exportClasspath assemble
sed -i.backup '/includeBuild("nextflow")/d' settings.gradle
rm -f settings.gradle.backup
.PHONY: test
test:
./gradlew :plugins:nf-dotenv:test --warning-mode all
.PHONY: build
build:
./gradlew copyPluginZip
.PHONY: install-local
install-local: build
mkdir -p ${HOME}/.nextflow/plugins/
rm -rf ${HOME}/.nextflow/plugins/nf-dotenv-${version}
cp -r build/plugins/nf-dotenv-${version} ${HOME}/.nextflow/plugins/nf-dotenv-${version}
.POHNY: publish-to-github
publish-to-github:
./gradlew plugins:upload