forked from nf-core/modules-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 734 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 734 Bytes
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
.PHONY: $(MAKECMDGOALS)
current_commit := $(shell git rev-parse --short HEAD)
clean:
@cd demo && (git rm -rf . || true ) && git clean -fxd
demo: clean
@copier copy --vcs-ref=HEAD --data-file tests/demo-answers.yml --defaults . demo
commit-demo: demo
@if [ -n "$$(git status --porcelain)" ]; then \
echo '🚨 ERROR: There are uncommitted changes in the demo directory. Please commit or stash them before continuing.'; \
exit 1; \
fi
@cd demo && bash .project_init.sh
@cd demo && git add . && git commit -m "🧹 chore: update demo from nf-core/nf-modules-template@${current_commit}"
docs:
@.venv/bin/mkdocs serve
docs-deploy:
@.venv/bin/mkdocs gh-deploy
setup:
@uv venv --seed
@uv pip install -r requirements.txt