diff options
| -rw-r--r-- | Makefile | 11 | ||||
| -rw-r--r-- | README.md | 18 |
2 files changed, 26 insertions, 3 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..684c2f5 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +DESTDIR ?= /usr +BINDIR ?= /bin + +.PHONY: install uninstall + +install: + install -v -d "$(DESTDIR)$(BINDIR)/" + install -m 0755 -v pilot.sh "$(DESTDIR)$(BINDIR)/pilot" + +uninstall: + rm -vrf "$(DESTDIR)$(BINDIR)/pilot" @@ -16,11 +16,23 @@ This script assumes the following: * `$CWL_SINGULARITY_CACHE` is set and the corresponding path contains (a link to) a singularity container `vlbi-cwl.sif`. If it isn't set a suitable container can be specified as detailed below. -## Execution +## Installation -The script can be run as follows: +The script can be installed to `/usr/bin` via ``` -sh pilot.sh [options] <workflow name> $BINDDIR +make install +``` +while uninstalling the script is as straightforward as running +``` +make uninstall +``` +A custom installation location can be specified by setting `DESTDIR`. + +## Usage + +Once installed the script can be run as follows: +``` +pilot [options] <workflow name> $BINDDIR ``` Options can be the following: |