-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathMakefile
53 lines (40 loc) · 1.54 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
47
48
49
50
51
52
53
.PHONY: all lint test test-cov viz-alpha-correlation viz-alpha-group-significance viz-alpha-rarefaction install dev clean distclean
PYTHON ?= python
all: viz-alpha-correlation viz-alpha-group-significance viz-alpha-rarefaction
lint:
q2lint
flake8
test: all
py.test
test-cov: all
py.test --cov=q2_diversity
q2_diversity/_alpha/alpha_correlation_assets/dist:
cd q2_diversity/_alpha/alpha_correlation_assets && \
npm install --no-save && \
npm run build && \
cp licenses/* dist/
q2_diversity/_alpha/alpha_group_significance_assets/dist:
cd q2_diversity/_alpha/alpha_group_significance_assets && \
npm install --no-save && \
npm run build && \
cp licenses/* dist/
q2_diversity/_alpha/alpha_rarefaction_assets/dist:
cd q2_diversity/_alpha/alpha_rarefaction_assets && \
npm install --no-save && \
npm run build && \
cp licenses/* dist/
viz-alpha-correlation: q2_diversity/_alpha/alpha_correlation_assets/dist
viz-alpha-group-significance: q2_diversity/_alpha/alpha_group_significance_assets/dist
viz-alpha-rarefaction: q2_diversity/_alpha/alpha_rarefaction_assets/dist
install: all
$(PYTHON) -m pip install -v .
dev: all
pip install -e .
clean: distclean
rm -rf q2_diversity/_alpha/alpha_correlation_assets/node_modules
rm -rf q2_diversity/_alpha/alpha_group_significance_assets/node_modules
rm -rf q2_diversity/_alpha/alpha_rarefaction_assets/node_modules
distclean:
rm -rf q2_diversity/_alpha/alpha_correlation_assets/dist
rm -rf q2_diversity/_alpha/alpha_group_significance_assets/dist
rm -rf q2_diversity/_alpha/alpha_rarefaction_assets/dist