summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMakefile4
-rwxr-xr-xfunc/Makefile5
-rwxr-xr-xfunc/minion/Makefile6
-rwxr-xr-xscripts/Makefile3
4 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 50b065e..5be4e59 100755
--- a/Makefile
+++ b/Makefile
@@ -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