-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
44 lines (35 loc) · 1.12 KB
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
VE ?= ./ve
FLAKE8 ?= $(VE)/bin/flake8
REQUIREMENTS ?= requirements.txt
SYS_PYTHON ?= python3
ENV_PYTHON ?= $(VE)/bin/python
PIP ?= $(VE)/bin/pip
PY_SENTINAL ?= $(VE)/sentinal
WHEEL_VERSION ?= 0.29.0
VIRTUALENV ?= virtualenv.py
SUPPORT_DIR ?= requirements/virtualenv_support/
SCRIPT_FILE ?= convert.py
MAX_COMPLEXITY ?= 10
PY_DIRS ?= *.py tests --exclude virtualenv.py
STAGING_URL=https://histologylab.stage.ctl.columbia.edu/
PROD_URL=https://histologylab.ctl.columbia.edu/
STAGING_BUCKET=histologylab.stage.ctl.columbia.edu
PROD_BUCKET=histologylab.ctl.columbia.edu
JS_FILES=themes/ctl-histologylab/static/js/src
all: eslint
include *.mk
$(PY_SENTINAL): $(REQUIREMENTS) $(VIRTUALENV) $(SUPPORT_DIR)*
rm -rf $(VE)
$(SYS_PYTHON) $(VIRTUALENV) --extra-search-dir=$(SUPPORT_DIR) --never-download $(VE)
$(PIP) install wheel==$(WHEEL_VERSION)
$(PIP) install --use-wheel --requirement $(REQUIREMENTS)
$(SYS_PYTHON) $(VIRTUALENV) --relocatable $(VE)
touch $@
flake8: $(PY_SENTINAL)
$(FLAKE8) $(PY_DIRS) --max-complexity=$(MAX_COMPLEXITY)
build-scss: $(JS_SENTINAL)
npm run build-scss
clean:
rm -rf ve
rm -rf node_modules
.PHONY: clean