diff --git a/Makefile b/Makefile index da30e81..e6fdc54 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ config ?= compileClasspath +version ?= $(shell grep 'Plugin-Version' plugins/nf-co2footprint/src/resources/META-INF/MANIFEST.MF | awk '{ print $$2 }') ifdef module mm = :${module}: @@ -7,6 +8,9 @@ else mm = endif +NXF_HOME ?= $$HOME/.nextflow +NXF_PLUGINS_DIR ?= $(NXF_HOME)/plugins + clean: ./gradlew clean @@ -44,6 +48,11 @@ else ./gradlew ${mm}test --tests ${class} endif +install: + ./gradlew copyPluginZip + rm -rf ${NXF_PLUGINS_DIR}/nf-co2footprint-${version} + cp -r build/plugins/nf-co2footprint-${version} ${NXF_PLUGINS_DIR} + # # generate build zips under build/plugins # you can install the plugin copying manually these files to $HOME/.nextflow/plugins diff --git a/docs/contributing/setup.md b/docs/contributing/setup.md index 02f5d10..caca34b 100644 --- a/docs/contributing/setup.md +++ b/docs/contributing/setup.md @@ -59,6 +59,27 @@ To test with Nextflow for development purpose: ./launch.sh run -plugins nf-co2footprint