-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
39 lines (27 loc) · 1.13 KB
/
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
38
39
DESTDIR :=
PREFIX := /usr
CONDA := conda
PIP := pip
all: scripts contrib/RSEM
contrib/RSEM:
$(MAKE) -C $@
scripts:
$(MAKE) -C $@
install: install-python install-systemd-units install-RSEM install-scripts install-conda-env
install-scripts:
$(MAKE) -C scripts install
install-python:
$(PIP) install --prefix="${DESTDIR}${PREFIX}" .
install-systemd-units:
mkdir -p "${DESTDIR}/etc/systemd/system/"
install data/systemd/rnaseq-pipeline-viewer.service data/systemd/rnaseq-pipeline-worker@.service "${DESTDIR}/etc/systemd/system/"
@echo "Remember to run 'systemctl override rnaseq-pipeline-viewer' and 'systemctl override rnaseq-pipeline-worker@' and set CONDA_BIN, CONDA_ENV, GEMMA_USERNAME and GEMMA_PASSWORD environment variables."
install-RSEM:
$(MAKE) -C contrib/RSEM install prefix="${DESTDIR}${PREFIX}"
install-conda-env: environment.yml
mkdir -p "${DESTDIR}/share/rnaseq-pipeline/"
$(CONDA) env create -p "${DESTDIR}${PREFIX}/share/rnaseq-pipeline/conda-env" -f environment.yml
clean:
$(MAKE) -C contrib/RSEM clean
$(MAKE) -C scripts clean
.PHONY: all scripts contrib/RSEM install install-python install-systemd-unit install-RSEM