-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 893 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
ENV=~/venv/folios
build-env:
virtualenv -p /usr/bin/python3 --prompt "(folios)" $(ENV)
. $(ENV)/bin/activate; PIP_DOWNLOAD_CACHE=./.pip_cache pip install -r requirements.txt
. $(ENV)/bin/activate; python3 setup.py install
remove-env:
rm -rf $(ENV)
rebuild-env: remove-env build-env
test:
. $(ENV)/bin/activate; python3 setup.py test
test-installed:
@[ -d $(ENV) ] || make build-env
. $(ENV)/bin/activate; cd /tmp; nosetests3 $(ENV)/lib/python*/site-packages/Folio*/folios/tests
call:
@[ -d $(ENV) ] || make build-env
. $(ENV)/bin/activate; cd /tmp; folios $(ARGS)
clean: clean-build clean-python
clean-build:
-rm -rf build
-rm -rf dist
-rm -rf Folios.egg-info
clean-python:
-find . -type d -name __pycache__ -exec rm -rf {} \;
-find . -type f -name *.pyc -exec rm -rf {} \;
.PHONY: build-env remove-env rebuild-env test test-installed call clean clean-build clean-python