servo/python/tidy/Makefile
askeing eb9a7e5c11 bump the minor version of servo_tidy
- and add clean folder into Makefile
2016-04-17 04:33:24 +09:00

25 lines
460 B
Makefile

PYTHON := python
VENV := env-$(PYTHON)
# for travis
$(VENV)/bin/python:
[ -d $(VENV) ] || $(PYTHON) -m virtualenv $(VENV) || virtualenv $(VENV)
$(VENV)/bin/pip install --upgrade setuptools
$(VENV)/bin/python setup.py develop
.PHONY: dev-env
dev-env: $(VENV)/bin/python
# for testing
.PHONY: test
test: dev-env
$(VENV)/bin/python -m unittest discover -s servo_tidy_tests -v
.PHONY: clean
clean:
find . -name "*.pyc" -type f -delete
rm -rf $(VENV)