-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (36 loc) · 1.04 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
40
41
42
43
44
45
46
# Makefile for Uppmax Environment.
# General variables
UID := $$( id -u )
GROUP := $$( id -g )
# Conda settings
CONDA_PKGM := mamba # Conda package manager to use
# Run Nextflow workflow
analysis:
cd analyses/YYYY-MM-DD_workflow_dev; \
./run_nextflow.sh
workflow-test:
cd analyses/YYYY-MM-DD_workflow_dev; \
./run_nextflow.sh
# Builds conda environment to execute workflow
nextflow-env:
$(CONDA_PKGM) env create --prefix "conda/nextflow-env" \
-f "workflow/nextflow_conda-env.yml"
# Render How-to webpages
how-to:
cd docs/how-to && quarto publish gh-pages --no-browser
# Render Report
report:
cd docs/report && quarto render Project_Report.qmd
# Link template
git-link-template:
git remote add template https://github.com/mahesh-panchal/NBIS_project_template
# Merge changes from template to current branch
git-merge-template:
git fetch template
git merge template/main --allow-unrelated-histories
# Phony targets
.PHONY: analysis workflow-test
.PHONY: nextflow-env
.PHONY: how-to
.PHONY: report
.PHONY: git-link-template git-merge-template