summaryrefslogtreecommitdiffstats
path: root/src/Makefile-files
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile-files')
-rw-r--r--src/Makefile-files15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Makefile-files b/src/Makefile-files
index ba4cb50..490ff31 100644
--- a/src/Makefile-files
+++ b/src/Makefile-files
@@ -14,6 +14,17 @@ nbblib_PYTHON += src/nbblib/plugins.py
nbblib_PYTHON += src/nbblib/progutils.py
nbblib_PYTHON += src/nbblib/vcs.py
+lint: lint-local
+
+lint-local: lint-local-pylint
+lint-local: lint-local-pychecker
+
+lint-local-pylint:
+ cd src && pylint --zope=y --acquired-members=name,plugins nbb nbblib
+
+lint-local-pychecker:
+ cd src && pychecker --limit=500 $$(for f in nbblib/*.py; do echo nbblib.$$(basename "$$f" .py); done)
+
# Put all python source files, whether changed or verbatim,
# into builddir, such that we can run tests in builddir.
ALL_LOCAL += all-local-nbblib
@@ -54,7 +65,7 @@ all-local-nbblib-pydoc: all-local-nbblib
if test "$$rebuild" = "yes"; then \
echo $(PYDOC) -w "$${mod}"; \
( cd src && $(PYDOC) -w "$${mod}" ); \
- if test -f "$$htmlfile" && cmp "src/$${mod}.html" "$$htmlfile"; \
+ if test -f "$$htmlfile" && cmp "src/$${mod}.html" "$$htmlfile" > /dev/null; \
then rm -f "src/$${mod}.html"; \
else echo "INFO: Updating pydoc/$${mod}.html"; \
mv -f "src/$${mod}.html" "$$htmlfile"; fi; \
@@ -88,7 +99,7 @@ src/nbb: src/nbb.in $(nodist_nbblib_PYTHON) $(nbblib_PYTHON) Makefile
$(GREP) '@[a-zA-Z0-9_]\{1,\}@' src/nbb.new; \
exit 1; \
fi
- @if test -f src/nbb && cmp src/nbb.new src/nbb; \
+ @if test -f src/nbb && cmp src/nbb.new src/nbb > /dev/null; \
then rm -f src/nbb.new; \
else mv -f src/nbb.new src/nbb; echo "INFO: Updating src/nbb"; fi
@chmod +x src/nbb