-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 1.12 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
.PHONY = help convex dist convex-groupby test all
PYTHON_INTERP = /usr/bin/env python3
ROOT_DIRECTORY := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
define HELP_LIST_TARGETS
To display all targets:
$$ make help
Generate {phe,tyr,trp}_3d_bridges.png convex hull plots:
$$ make convex
Generate {(phe|tyr|trp)_(phe|tyr|trp)_(phe|tyr|trp)}_3d_bridges.png grouped convex hull plots:
$$ make convex-groupby
Generate distribution.png:
$$ make dist
Run unit tests:
$$ make test
Make all targets:
$$ make all
endef
export HELP_LIST_TARGETS
help:
@echo "$$HELP_LIST_TARGETS"
convex:
@echo '> Making convex hull target'
@$(PYTHON_INTERP) $(ROOT_DIRECTORY)/convex_hulls/get_convex_hulls.py
convex-groupby:
@echo '> Making convex hull groupby target'
@$(PYTHON_INTERP) $(ROOT_DIRECTORY)/convex_hulls_groupby/get_convex_hulls_groupby.py
dist:
@echo '> Making distributions target'
@$(PYTHON_INTERP) $(ROOT_DIRECTORY)/distributions/get_3_bridge_distribution.py
test:
@echo '> Running unit tests'
@$(PYTHON_INTERP) -m pytest --verbose --capture=no $(ROOT_DIRECTORY)/tests
all: test dist convex convex-groupby