diff options
author | James Bowes <jbowes@redhat.com> | 2007-10-02 21:51:13 -0400 |
---|---|---|
committer | James Bowes <jbowes@redhat.com> | 2007-10-02 22:02:47 -0400 |
commit | 63e937cf144f0c61811bb6d842cfc22838a6b851 (patch) | |
tree | 7ccea04d35084633a2c16b5212cd635204e3a640 | |
parent | 1ce955ec36f775d8fde2cb9d7943178e8b9d60da (diff) | |
download | third_party-func-63e937cf144f0c61811bb6d842cfc22838a6b851.tar.gz third_party-func-63e937cf144f0c61811bb6d842cfc22838a6b851.tar.xz third_party-func-63e937cf144f0c61811bb6d842cfc22838a6b851.zip |
Fix up recursive pylint and pychecker rules.
-rwxr-xr-x | Makefile | 4 | ||||
-rwxr-xr-x | func/Makefile | 5 | ||||
-rwxr-xr-x | func/minion/Makefile | 6 | ||||
-rwxr-xr-x | scripts/Makefile | 3 |
4 files changed, 15 insertions, 3 deletions
@@ -5,8 +5,8 @@ NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) MESSAGESPOT=po/messages.pot TOPDIR = $(shell pwd) -DIRS = modules minion overlord func docs scripts -PYDIRS = modules minion overlord func scripts +DIRS = func docs scripts +PYDIRS = func scripts EXAMPLEDIR = examples INITDIR = init-scripts diff --git a/func/Makefile b/func/Makefile index 86a3db8..99fd546 100755 --- a/func/Makefile +++ b/func/Makefile @@ -1,6 +1,7 @@ PYFILES = $(wildcard *.py) +PYDIRS = minion overlord PYCHECKER = /usr/bin/pychecker PYFLAKES = /usr/bin/pyflakes @@ -17,3 +18,7 @@ pychecker:: pyflakes:: @$(PYFLAKES) $(PYFILES) || exit 0 +pychecker:: + -for d in $(PYDIRS); do ($(MAKE) -C $$d pychecker ); done +pyflakes:: + -for d in $(PYDIRS); do ($(MAKE) -C $$d pyflakes ); done diff --git a/func/minion/Makefile b/func/minion/Makefile index f2bc6c4..d630382 100755 --- a/func/minion/Makefile +++ b/func/minion/Makefile @@ -1,6 +1,7 @@ PYFILES = $(wildcard *.py) +PYDIRS = modules PYCHECKER = /usr/bin/pychecker PYFLAKES = /usr/bin/pyflakes @@ -16,3 +17,8 @@ pychecker:: pyflakes:: @$(PYFLAKES) $(PYFILES) || exit 0 + +pychecker:: + -for d in $(PYDIRS); do ($(MAKE) -C $$d pychecker ); done +pyflakes:: + -for d in $(PYDIRS); do ($(MAKE) -C $$d pyflakes ); done diff --git a/scripts/Makefile b/scripts/Makefile index 86a3db8..a4cc7e1 100755 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -15,5 +15,6 @@ pychecker:: @$(PYCHECKER) $(PYFILES) || exit 0 pyflakes:: +ifneq ($(PYFILES)x, x) @$(PYFLAKES) $(PYFILES) || exit 0 - +endif |