-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (32 loc) · 971 Bytes
/
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
47
# Makefile for facilitating common operations on this code repository.
SHELL=/bin/bash
install:
bash scripts/install.sh
dry_run:
bash scripts/dry_run.sh
touch:
bash scripts/touch_intermediate_files.sh
run:
nohup bash scripts/run_workflow.sh & echo $$! > pid_nohup.txt
archive:
nohup bash scripts/archive_workflow.sh & echo $$! > pid_nohup.txt
killall:
kill -9 `cat pid_nohup.txt`
rm pid_nohup.txt
killall -TERM snakemake
echo Jobs may still be running on the cluster. Cancel those manually, if necessary.
clean:
-rm nohup.out
-rm pid_nohup.txt
-rm slurm*
clean_results:
rm -rf results/*
clean_virtualenvs:
bash scripts/clean_virtualenvs.sh
unlock:
bash scripts/unlock_workflow.sh
uninstall:
bash scripts/uninstall.sh
.PHONY: list
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'