summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8a224fe..01d0a98 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,11 @@ check:
rm -f .coverage
cmdtest tests
pep8 summain summainlib.py summainlib_tests.py
- pylint --rcfile=pylint.conf summain summainlib.py summainlib_tests.py
+ if command -v pylint && pylint --version | grep '^pylint [1-9]'; \
+ then \
+ PYTHONPATH=. pylint --rcfile=pylint.conf \
+ summain summainlib.py summainlib_tests.py; \
+ fi
clean:
python setup.py clean