Skip to content

Commit ddafd0c

Browse files
committed
Add a Makefile
1 parent 632542d commit ddafd0c

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

Makefile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
DESTDIR :=
2+
PREFIX := /usr
3+
4+
CONDA := conda
5+
PIP := pip
6+
7+
all: scripts contrib/RSEM
8+
9+
contrib/RSEM:
10+
$(MAKE) -C $@
11+
12+
scripts:
13+
$(MAKE) -C $@
14+
15+
install: install-python install-systemd-units install-RSEM install-scripts install-conda-env
16+
17+
install-scripts:
18+
$(MAKE) -C scripts install
19+
20+
install-python:
21+
$(PIP) install --prefix="${DESTDIR}${PREFIX}" .
22+
23+
install-systemd-units:
24+
mkdir -p "${DESTDIR}/etc/systemd/system/"
25+
install data/systemd/rnaseq-pipeline-viewer.service data/systemd/[email protected] "${DESTDIR}/etc/systemd/system/"
26+
@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."
27+
28+
install-RSEM:
29+
$(MAKE) -C contrib/RSEM install prefix="${DESTDIR}${PREFIX}"
30+
31+
install-conda-env: environment.yml
32+
mkdir -p "${DESTDIR}/share/rnaseq-pipeline/"
33+
$(CONDA) env create -p "${DESTDIR}${PREFIX}/share/rnaseq-pipeline/conda-env" -f environment.yml
34+
35+
clean:
36+
$(MAKE) -C contrib/RSEM clean
37+
$(MAKE) -C scripts clean
38+
39+
.PHONY: all scripts contrib/RSEM install install-python install-systemd-unit install-RSEM

scripts/Makefile

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
DESTDIR :=
2+
PREFIX := /usr
3+
14
clean-unused-shm-objects: clean-unused-shm-objects.c
2-
gcc -o $@ $<
5+
$(CC) -o $@ $<
6+
7+
install:
8+
mkdir -p "${DESTDIR}${PREFIX}/bin"
9+
install clean-unused-shm-objects "${DESTDIR}${PREFIX}/bin"
10+
11+
clean:
12+
rm clean-unused-shm-objects
13+
14+
.PHONY: install clean

0 commit comments

Comments
 (0)