servo/python/tidy/Makefile
askeing 8c4c899ef9 Modified the servo_tidy_tests for both "./mach" and "make test"
- fix `cd python/tidy; make test` fail issue
2016-04-14 21:19:16 +09:00

26 lines
446 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