gecko-dev/servo/python/tidy/Makefile
2016-04-19 01:52:01 +05:01

26 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)