summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-03-04 17:54:53 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-03-04 17:54:53 -0500
commit1afe5b3bd97d292ab4c024ee7c434d036cb5db9d (patch)
tree9d80a010e4162dfe0f0ed58df813435150c77e5c /func
parent33ce5a294db93d58374b964425e91e64ab2a1458 (diff)
downloadfunc-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.tar.gz
func-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.tar.xz
func-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.zip
make "make clean" even cleanier.
try to hit up more of the subdirs, etc, when running "make clean"
Diffstat (limited to 'func')
-rwxr-xr-xfunc/Makefile4
-rwxr-xr-xfunc/minion/Makefile4
-rwxr-xr-xfunc/minion/modules/Makefile2
-rwxr-xr-xfunc/overlord/Makefile4
-rwxr-xr-xfunc/overlord/cmd_modules/Makefile17
-rwxr-xr-xfunc/overlord/modules/Makefile17
6 files changed, 42 insertions, 6 deletions
diff --git a/func/Makefile b/func/Makefile
index 99fd546..e1ce0e7 100755
--- a/func/Makefile
+++ b/func/Makefile
@@ -1,4 +1,5 @@
+DIRS = minion overlord
PYFILES = $(wildcard *.py)
PYDIRS = minion overlord
@@ -10,7 +11,8 @@ clean::
@rm -fv *.pyc *~ .*~ *.pyo
@find . -name .\#\* -exec rm -fv {} \;
@rm -fv *.rpm
-
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
+
pychecker::
@$(PYCHECKER) $(PYFILES) || exit 0
diff --git a/func/minion/Makefile b/func/minion/Makefile
index d630382..be4d3af 100755
--- a/func/minion/Makefile
+++ b/func/minion/Makefile
@@ -1,4 +1,4 @@
-
+DIRS = modules
PYFILES = $(wildcard *.py)
PYDIRS = modules
@@ -10,7 +10,7 @@ clean::
@rm -fv *.pyc *~ .*~ *.pyo
@find . -name .\#\* -exec rm -fv {} \;
@rm -fv *.rpm
-
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
pychecker::
@$(PYCHECKER) $(PYFILES) || exit 0
diff --git a/func/minion/modules/Makefile b/func/minion/modules/Makefile
index f2bc6c4..64c9c5c 100755
--- a/func/minion/modules/Makefile
+++ b/func/minion/modules/Makefile
@@ -9,7 +9,7 @@ clean::
@rm -fv *.pyc *~ .*~ *.pyo
@find . -name .\#\* -exec rm -fv {} \;
@rm -fv *.rpm
-
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
pychecker::
@$(PYCHECKER) $(PYFILES) || exit 0
diff --git a/func/overlord/Makefile b/func/overlord/Makefile
index f2bc6c4..8c0ae9b 100755
--- a/func/overlord/Makefile
+++ b/func/overlord/Makefile
@@ -1,5 +1,5 @@
-
+DIRS = modules cmd_modules
PYFILES = $(wildcard *.py)
PYCHECKER = /usr/bin/pychecker
@@ -9,7 +9,7 @@ clean::
@rm -fv *.pyc *~ .*~ *.pyo
@find . -name .\#\* -exec rm -fv {} \;
@rm -fv *.rpm
-
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
pychecker::
@$(PYCHECKER) $(PYFILES) || exit 0
diff --git a/func/overlord/cmd_modules/Makefile b/func/overlord/cmd_modules/Makefile
new file mode 100755
index 0000000..15750f7
--- /dev/null
+++ b/func/overlord/cmd_modules/Makefile
@@ -0,0 +1,17 @@
+
+PYFILES = $(wildcard *.py)
+
+PYCHECKER = /usr/bin/pychecker
+PYFLAKES = /usr/bin/pyflakes
+
+clean::
+ @rm -fv *.pyc *~ .*~ *.pyo
+ @find . -name .\#\* -exec rm -fv {} \;
+ @rm -fv *.rpm
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
+
+pychecker::
+ @$(PYCHECKER) $(PYFILES) || exit 0
+
+pyflakes::
+ @$(PYFLAKES) $(PYFILES) || exit 0
diff --git a/func/overlord/modules/Makefile b/func/overlord/modules/Makefile
new file mode 100755
index 0000000..15750f7
--- /dev/null
+++ b/func/overlord/modules/Makefile
@@ -0,0 +1,17 @@
+
+PYFILES = $(wildcard *.py)
+
+PYCHECKER = /usr/bin/pychecker
+PYFLAKES = /usr/bin/pyflakes
+
+clean::
+ @rm -fv *.pyc *~ .*~ *.pyo
+ @find . -name .\#\* -exec rm -fv {} \;
+ @rm -fv *.rpm
+ -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done
+
+pychecker::
+ @$(PYCHECKER) $(PYFILES) || exit 0
+
+pyflakes::
+ @$(PYFLAKES) $(PYFILES) || exit 0