-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 709 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 709 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
28
PATH_VENV=venv
PATH_REQUIREMENTS=tests/requirements.txt
PATH_PKG=$(PWD)
.PHONY: venv
venv:
rm -rf $(PATH_VENV)
virtualenv $(PATH_VENV)
.PHONY: dependencies
dependencies:
@if [ ! -d $(PATH_VENV) ]; then virtualenv $(PATH_VENV) ; fi
. $(PATH_VENV)/bin/activate && pip install -r $(PATH_REQUIREMENTS)
.PHONY: install-me
install-me:
@rm -rf $(PATH_VENV)
@if [ ! -d $(PATH_VENV) ]; then virtualenv $(PATH_VENV) ; fi
. $(PATH_VENV)/bin/activate && pip install -e $(PATH_PKG)
.PHONY: check-syntax
check-syntax:
. $(PATH_VENV)/bin/activate && pep8 glpicli/*.py
.PHONY: clean
clean:
@if [ -d $(PATH_VENV) ]; then rm -rf $(PATH_VENV); fi
@if [ -d $(PATH_VENV_SETUP) ]; then rm -rf $(PATH_VENV_SETUP); fi