mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-20 23:51:39 +00:00
8104d137e0
--HG-- branch : make
51 lines
1013 B
Makefile
51 lines
1013 B
Makefile
# Makefile for handling various tasks of PyLint sources
|
|
PYVE=pyve
|
|
PIP=$(PYVE)/bin/pip
|
|
TOX=$(PYVE)/bin/tox
|
|
|
|
# this is default target, it should always be first in this Makefile
|
|
help:
|
|
@echo "Please use \`make <target>' where <target> is one of"
|
|
@echo " tests to run whole test suit of PyLint"
|
|
@echo " docs to generate all docs including man pages and exemplary pylintrc"
|
|
@echo " deb to build debian package"
|
|
@echo " lint to check Pylint sources with itself"
|
|
@echo " all to run all targets"
|
|
|
|
|
|
$(PIP):
|
|
virtualenv $(PYVE)
|
|
|
|
$(TOX): $(PIP)
|
|
$(PIP) install tox==1.7
|
|
|
|
|
|
ifdef TOXENV
|
|
toxparams?=-e $(TOXENV)
|
|
endif
|
|
|
|
tests: $(TOX)
|
|
$(TOX) $(toxparams)
|
|
|
|
docs: $(PIP)
|
|
$(PIP) install .
|
|
$(PIP) install Sphinx
|
|
. pyve/bin/activate; make all -C doc
|
|
|
|
deb:
|
|
debuild -b -us -uc
|
|
|
|
lint: $(PIP)
|
|
$(PIP) install .
|
|
$(PYVE)/bin/pylint lint.py
|
|
|
|
clean:
|
|
rm -rf $(PYVE)
|
|
rm -rf .tox
|
|
make clean -C doc
|
|
debuild clean
|
|
|
|
all: clean lint tests docs deb
|
|
|
|
.PHONY: help tests docs deb lint clean all
|